import type { LongLivedToken, OAuthConfig, ShortLivedToken } from "./types.ts"; export declare function createOAuth(config: OAuthConfig): { getAuthorizationUrl(opts?: { scopes?: string[]; state?: string; }): string; exchangeCode(code: string): Promise; exchangeForLongLived(shortLivedToken: string): Promise; refreshToken(longLivedToken: string): Promise; completeOAuth(code: string): Promise<{ token: LongLivedToken; userId: string; }>; }; //# sourceMappingURL=oauth.d.ts.map