import { type Database } from "./database.js"; type PendingStateScope = { accountId: string; workspaceId: string | null; actorSubjectId?: string; }; export declare function storeIntegrationOAuthPendingState(db: Database, input: PendingStateScope & { id: string; stateEncrypted: string; expiresAt: Date; }): Promise; export declare function loadIntegrationOAuthPendingState(db: Database, input: PendingStateScope & { id: string; }): Promise; /** Consume only the exact actor-validated encrypted attempt; concurrent exchanges cannot replay it. */ export declare function consumeIntegrationOAuthPendingState(db: Database, input: PendingStateScope & { id: string; stateEncrypted: string; }): Promise; export {};