import { type SetupAgentsCodeExchange } from '../../services/setup-agents-auth.js'; export type SetupAgentsAuthStatus = { authorized: boolean; issuanceUrl: string; }; export type BridgeAuthService = { authorize: (code: string, workspace: string) => Promise; getStatus: (workspace: string) => SetupAgentsAuthStatus; isAuthorized: (workspace: string) => boolean; }; export type BridgeAuthServiceOptions = { exchange?: (code: string) => Promise; isActivated?: (workspace: string, now: number) => boolean; recordActivation?: (workspace: string) => void; issuanceUrl?: string; now?: () => number; }; /** Authorization status is derived from durable workspace activation, never bridge-local TTL state. */ export declare function createBridgeAuthService(options?: BridgeAuthServiceOptions): BridgeAuthService;