import { TokenEndpointBody } from "./token-endpoint.js"; import { AuthorizeCodeOptions, DiscoveredMetadata, OAuthRegistration, OAuthSession } from "./types.js"; //#region src/oauth/authorize-code-flow.d.ts /** Internal arguments fed into {@link runAuthorizationCodeFlow}. */ interface AuthorizationCodeFlowArgs { readonly serverId: string; readonly metadata: DiscoveredMetadata; readonly registration: OAuthRegistration; readonly options: AuthorizeCodeOptions; } /** * Drive the Authorization Code + PKCE flow. The function is exposed * for tests and for higher-level orchestration in `client.ts`. * * @stable */ declare function runAuthorizationCodeFlow(args: AuthorizationCodeFlowArgs): Promise; /** * Construct an {@link OAuthSession} from a successful token-endpoint * payload. Exported for the device + refresh flows so they share a * single mapping path. * * @stable */ declare function buildOAuthSession(serverId: string, body: TokenEndpointBody, override?: { readonly issuedAt?: number; }): OAuthSession; //#endregion export { AuthorizationCodeFlowArgs, buildOAuthSession, runAuthorizationCodeFlow }; //# sourceMappingURL=authorize-code-flow.d.ts.map