import { type IncomingMessage, type ServerResponse } from "node:http"; declare function handleCallback(req: IncomingMessage, res: ServerResponse): Promise; export declare function stopOAuthServer(): void; export declare function createBrowserAuthorization(): Promise<{ url: string; instructions: string; method: "auto"; callback(): Promise<{ type: "success"; refresh: string; access: string; expires: number; accountId: string | undefined; } | { type: "failed"; refresh?: undefined; access?: undefined; expires?: undefined; accountId?: undefined; }>; }>; export declare function createDeviceAuthorization(): Promise<{ url: string; instructions: string; method: "auto"; callback(): Promise<{ type: "failed"; refresh?: undefined; access?: undefined; expires?: undefined; accountId?: undefined; } | { type: "success"; refresh: string; access: string; expires: number; accountId: string | undefined; }>; }>; export declare const oauthMethods: { label: string; type: "oauth"; authorize: typeof createBrowserAuthorization; }[]; export declare const oauthTesting: { handleCallback: typeof handleCallback; getPendingState: () => string | undefined; reset: typeof stopOAuthServer; }; export {}; //# sourceMappingURL=oauth.d.ts.map