import type { StoreTokenResponse } from './token-client.js'; import type { WaitForAuthCodeOptions } from './callback.js'; interface StoreAuthorizationContext { store: string; scopes: string[]; state: string; port: number; redirectUri: string; authorizationUrl: string; codeVerifier: string; } interface StoreAuthBootstrap { authorization: StoreAuthorizationContext; waitForAuthCodeOptions: WaitForAuthCodeOptions; exchangeCodeForToken: (code: string) => Promise; } export declare function generateCodeVerifier(): string; export declare function computeCodeChallenge(verifier: string): string; export declare function buildStoreAuthUrl(options: { store: string; scopes: string[]; state: string; redirectUri: string; codeChallenge: string; }): string; export declare function createPkceBootstrap(options: { store: string; scopes: string[]; exchangeCodeForToken: (options: { store: string; code: string; codeVerifier: string; redirectUri: string; }) => Promise; }): StoreAuthBootstrap; export {};