import type { ClioTokens } from "./clioOAuth.js"; export type { ClioTokens } from "./clioOAuth.js"; export { generateCodeVerifier, deriveCodeChallenge } from "./clioOAuth.js"; export declare function runOAuthFlow(): Promise; export declare function isBrokerMode(): boolean; export declare function getBrokerUrl(): string; export declare function startBrokerLogin(codeChallenge: string): Promise<{ sessionId: string; authorizeUrl: string; }>; export type BrokerPollResult = { status: "pending"; } | { status: "ready"; tokens: ClioTokens; }; export declare function pollBrokerOnce(brokerUrl: string, sessionId: string, codeVerifier: string): Promise; export declare function runBrokerOAuthFlow(): Promise; export declare function refreshTokensViaBroker(refreshToken: string): Promise; /** Built-in HTTP mode: the login URL for a session, with the nonce to verify on callback. */ export declare function buildAuthorizationUrl(sessionId: string): { url: string; nonce: string; }; export declare function exchangeCodeForTokensPure(code: string, redirectUri: string): Promise; export declare function refreshTokensPure(refreshToken: string): Promise; /** * stdio mode token access. Concurrent callers share one in-flight run so two * overlapping tool calls cannot both refresh and stomp each other's tokens. */ export declare const getValidAccessToken: () => Promise; //# sourceMappingURL=oauth.d.ts.map