import type { SubmissionLocatorStorage } from './workflow-submission-recovery'; /** Locator only. Never persist the original token, operation input or form values. */ export interface PendingWorkflowTaskCommand { taskId: string; command: string; idempotencyKey: string; requestedAt: string; tokenDigest: string; } export declare function workflowTaskCommandScope(appCode: string, environmentId: string, userId: string, taskId: string): string; export declare function readPendingWorkflowTaskCommand(storage: SubmissionLocatorStorage | undefined, scope: string): PendingWorkflowTaskCommand | null; export declare function writePendingWorkflowTaskCommand(storage: SubmissionLocatorStorage | undefined, scope: string, value: PendingWorkflowTaskCommand): boolean; export declare function clearPendingWorkflowTaskCommand(storage: SubmissionLocatorStorage | undefined, scope: string, idempotencyKey: string): void; export declare function workflowCommandTokenDigest(token: string): Promise; /** Only a first-attempt, structured server rejection proves no successful write. */ export declare function workflowTaskCommandWasRejected(error: unknown): boolean; //# sourceMappingURL=workflow-task-command-recovery.d.ts.map