import { type BusinessProcessCommand, type DataFieldSurface, type SubjectProfile, type WorkflowNamedOperationLaunchIntent } from 'openxiangda-contracts/browser'; export declare function workflowContextScalarValue(field: Pick, value: string): unknown; export interface WorkflowNamedOperationSubjectInput { id: string; revision: number; } export interface WorkflowNamedOperationExpectedResult { appCode: string; environmentKey: string; workflowCode: string; resourceCode: string; } export type WorkflowNamedOperationResult = { kind: 'workflow-command'; subjectId: string; subjectRevision?: number; command: BusinessProcessCommand; } | { kind: 'completed-without-workflow'; subjectId: string; subjectRevision?: number; }; /** * Compares JSON launch-contract fragments structurally. Runtime Surfaces are * read through PostgreSQL jsonb, whose object-key order is not an application * contract; array order and every serialized value remain significant. */ export declare function workflowLaunchContractJsonEqual(left: unknown, right: unknown): boolean; /** Builds only the top-level request properties sealed by the launch intent. */ export declare function buildWorkflowNamedOperationInput(intent: WorkflowNamedOperationLaunchIntent, input: { values: Record; idempotencyKey: string; requestedAt: string; subjectProfile: SubjectProfile; subject?: WorkflowNamedOperationSubjectInput; }): Record; /** * Verifies the application response before the standard page starts polling a * durable command. Missing/null processCommand is the explicit no-approval * outcome and never causes the browser to synthesize a Workflow. */ export declare function parseWorkflowNamedOperationResult(intent: WorkflowNamedOperationLaunchIntent, result: Record, expected: WorkflowNamedOperationExpectedResult): WorkflowNamedOperationResult; /** 仅供已接受命令的状态读取;不用于提交、补充或显式重试命令。 */ export declare function processStatusReadRetryDelay(error: unknown, failures: number, elapsedMs: number): number | null; //# sourceMappingURL=workflow-launch.d.ts.map