import type { Hex } from 'viem'; export declare const PENDING_ACTION_TIMEOUT_MS: number; export interface PendingAction { token: string; resolve: (result: any) => void; reject: (err: Error) => void; data: any; expiresAt: number; timer: NodeJS.Timeout; } export declare const pendingActions: Map; export declare const agentKeyStore: Map; /** Tag with BorosErrorCode so classifyError maps it without regex on the message. */ export declare function makeTypedError(code: string, message: string): Error; export declare function createPendingAction(data: any): { token: string; promise: Promise; }; export declare function storeAgentKey(token: string, privateKey: Hex): void; /** Reject + teardown timer/key. Centralised so the ~10 cleanup sites in /api/complete can't drift. */ export declare function failPendingAction(action: PendingAction, token: string, err: Error): void; /** Resolve + teardown timer/key. */ export declare function resolvePendingAction(action: PendingAction, token: string, payload: any): void; //# sourceMappingURL=state.d.ts.map