import type { PersistentBackend } from './persistent-backend.js'; export type ReauthVariant = 'instrumented' | 'plain'; export interface SetupFlowEvents { onSetupNeeded?: (message: string) => void; onSetupComplete?: (profileDir: string) => void; onReauthNeeded?: (message: string) => void; onReauthComplete?: (profileDir: string) => void; } export declare const SETUP_INSTRUCTIONS: string; export declare function reauthInstructions(url: string, variant: ReauthVariant): string; export declare function runBootstrap(options: { profileDir?: string; executablePath?: string; chromeArgs?: string[]; signal?: AbortSignal; launch?: (options: { userDataDir: string; profileDirectory?: string; executablePath?: string; chromeArgs?: string[]; signal?: AbortSignal; }) => Promise; }, events?: SetupFlowEvents): Promise; export interface ReauthOptions { backend: Pick; url: string; variant?: ReauthVariant; signal?: AbortSignal; executablePath?: string; chromeArgs?: string[]; launchPlain?: (options: { userDataDir: string; profileDirectory?: string; executablePath?: string; chromeArgs?: string[]; signal?: AbortSignal; }) => Promise; restartBackend?: (headed: boolean) => Promise; events?: SetupFlowEvents; } export declare function runReauth(options: ReauthOptions): Promise; export declare function resumeHeadless(backend: PersistentBackend): Promise; //# sourceMappingURL=setup-flow.d.ts.map