import { type Store } from '../core/index.js'; /** A validated `/oauth2/authorize` request held while the hosted sign-in runs. */ export interface ConnectAuthorizeRequest { client_id: string; redirect_uri: string; state: string | null; code_challenge: string | null; code_challenge_method: string | null; scope: string[]; resource: string | null; /** OIDC `nonce`, echoed into the `id_token`. */ nonce: string | null; expires_at: string; } /** Store one validated request and discard abandoned requests that have expired. */ export declare function createConnectAuthorizeRequest(store: Store, request: Omit): string; /** Read a live request, removing an expired one when it is encountered. */ export declare function getConnectAuthorizeRequest(store: Store, token: string): ConnectAuthorizeRequest | undefined; /** Consume a request after it has produced its single authorization code. */ export declare function consumeConnectAuthorizeRequest(store: Store, token: string): ConnectAuthorizeRequest | undefined; /** Remove every parked sign-in for a deleted Connect application. */ export declare function deleteConnectAuthorizeRequestsForClient(store: Store, clientId: string): number;