export interface OAuthCredentials { refresh: string; access: string; expires: number; } export type OAuthFlowState = { step: "idle"; } | { step: "awaiting-code"; verifier: string; oauthState?: string; } | { step: "exchanging"; } | { step: "connected"; } | { step: "error"; message: string; }; export declare const OAUTH_PROVIDERS: Record; import type { StorageNamespace } from "../context"; export declare function loadOAuthCredentials(ns: StorageNamespace, provider: string): OAuthCredentials | null; export declare function saveOAuthCredentials(ns: StorageNamespace, provider: string, creds: OAuthCredentials): void; export declare function removeOAuthCredentials(ns: StorageNamespace, provider: string): void; export declare function generatePKCE(): Promise<{ verifier: string; challenge: string; }>; export declare function buildAuthorizationUrl(provider: string, challenge: string, verifier: string): { url: string; oauthState?: string; }; export declare function refreshOAuthToken(provider: string, refreshToken: string, proxyUrl: string, useProxy: boolean): Promise; export declare function exchangeOAuthCode(params: { provider: string; rawInput: string; verifier: string; expectedState?: string; useProxy: boolean; proxyUrl: string; }): Promise; //# sourceMappingURL=index.d.ts.map