import type { ProvenanceBlock } from '../receipts/schema'; import type { ReceiptV2, ReceiptV3, ReviewerCascadeEvidence, WorkflowConfig } from './types'; type WorkflowSigningKeys = NonNullable; export interface WorkflowReceiptVerifyOptions { publicKeyHex?: string; allowedSignerPublicKeysHex?: string[]; } export declare function canonicalJSONStringify(value: unknown): string; export declare function sha256(input: string): string; export declare function workflowReceiptId(prefix?: string): string; export declare function signReceiptPayload(payload: unknown, signingKeys?: WorkflowSigningKeys): Promise<{ signature: string; public_key_fingerprint: string; public_key_hex: string; }>; export declare function buildReceipt(args: { workflow_id: string | null; outcome_name: string; user_id: string; cost_usd: number; parent_receipt_id: string | null; chain_validation_hash: string | null; workflow_checkpoint_idx: number | null; workflow_total_spend_usd_to_date: number | null; is_checkpoint?: boolean; checkpoint_label?: string | null; reviewer_cascade?: ReviewerCascadeEvidence | null; receipt_type?: ReceiptV2['receipt_type']; cancelled_reason?: string | null; signingKeys?: WorkflowSigningKeys; receipt_id?: string; signed_at?: string; }): Promise; export declare function buildReceiptV3(args: { workflow_id: string | null; outcome_name: string; user_id: string; cost_usd: number; parent_receipt_id: string | null; chain_validation_hash: string | null; workflow_checkpoint_idx: number | null; workflow_total_spend_usd_to_date: number | null; provenance: ProvenanceBlock; is_checkpoint?: boolean; checkpoint_label?: string | null; reviewer_cascade?: ReviewerCascadeEvidence | null; receipt_type?: ReceiptV2['receipt_type']; cancelled_reason?: string | null; signingKeys?: WorkflowSigningKeys; receipt_id?: string; signed_at?: string; }): Promise; export declare function verifyAnyReceipt(receipt: ReceiptV2 | ReceiptV3, options?: WorkflowReceiptVerifyOptions): boolean; export declare function verifyReceipt(receipt: ReceiptV2 | ReceiptV3, options?: WorkflowReceiptVerifyOptions): boolean; export declare function roundUsd(value: number): number; export {}; //# sourceMappingURL=receipt.d.ts.map