//#region extensions/crypto/src/services/confirmation-store.d.ts /** * Confirmation Store — manages pending step confirmations for the plan executor. * * When a plan step requires user confirmation (requireConfirmation: true), * the executor pauses and creates a pending confirmation. The user can * respond with /approve or /deny to resolve it. * * Confirmations time out after CONFIRMATION_TIMEOUT_MS (5 minutes). */ interface PendingConfirmation { /** The plan execution ID. */ executionId: string; /** Plan name for display. */ planName: string; /** The step label (e.g., "Swap 1 ETH → USDC"). */ stepLabel: string; /** The tool being called. */ tool: string; /** Resolved params for display. */ params: Record; /** The userId who owns the plan. */ userId: string; /** When this confirmation was created. */ createdAt: number; /** Resolve the confirmation Promise. */ resolve: (approved: boolean) => void; } /** * Create a pending confirmation for a step. * Returns a Promise that resolves when the user responds. * Times out after 5 minutes (resolves false). */ declare function createPendingConfirmation(opts: { executionId: string; planName: string; stepLabel: string; tool: string; params: Record; userId: string; }): Promise; /** * Respond to the most recent pending confirmation for a user. * Returns the confirmation details if found, or null if no pending confirmation. */ declare function respondToConfirmation(userId: string, approved: boolean): PendingConfirmation | null; /** * Get the pending confirmation for a user (for display purposes). */ declare function getPendingConfirmation(userId: string): PendingConfirmation | null; /** * Cancel all pending confirmations for an execution (e.g., when plan is cancelled). */ declare function cancelExecutionConfirmations(executionId: string): void; /** * How many confirmations are pending. */ declare function pendingCount(): number; //#endregion export { PendingConfirmation, cancelExecutionConfirmations, createPendingConfirmation, getPendingConfirmation, pendingCount, respondToConfirmation }; //# sourceMappingURL=confirmation-store.d.mts.map