export class OAuthClient { constructor(opts: { server: string; clientId?: string; redirectUri?: string; scope?: string }) init(): Promise login(handle?: string): Promise handleCallback(): Promise logout(): Promise fetch(path: string, opts?: RequestInit): Promise get isLoggedIn(): boolean get did(): string | null get handle(): string | null }