import { type Prompt } from './connect-fallback.js'; import type { HarnessResultBase, HarnessRunResult } from './connect-all.js'; export declare const OAUTH_SIGN_IN_TIMEOUT_MS = 90000; interface AuthGateOutcome { result?: HarnessRunResult; headlessAuth: boolean; spentBrowserSlot: boolean; } export declare function mapConnectError(base: HarnessResultBase, e: unknown, oauthBudget: { spent: boolean; }, spentBrowserSlot: boolean, fixCommand: string): HarnessRunResult; export declare function authGate(base: HarnessResultBase, oauthBudget: { spent: boolean; }, fixCommand: string, ctx: { prompt: Prompt | undefined; isTTY: boolean; keyed: boolean; }): Promise; export {};