import type { ApprovalGrant, ApprovalResponse, ApprovalState, FabricPrincipal, JsonObject } from "./types.js"; /** Deterministic digest shared by inline and durable approval runtimes. */ export declare function approvalInputDigest(input: unknown): string; export declare function createApprovalGrant(input: { approvalId: string; toolCallId: string; toolInput: unknown; principal: FabricPrincipal; response: ApprovalResponse; createdAt: string; ttlSeconds?: number; decidedAt?: string; }): ApprovalGrant; /** Parse persisted provenance without trusting a partial or malformed object. */ export declare function approvalGrantFromJson(value: unknown): ApprovalGrant | undefined; export declare function approvalGrantToJson(grant: ApprovalGrant): JsonObject; /** Build the terminal grant after a store reaches approval quorum. */ export declare function createApprovalGrantForState(state: ApprovalState, response: ApprovalResponse): ApprovalGrant | undefined; /** Reconstruct and validate a durable grant before replaying an approved call. */ export declare function approvalGrantFromState(state: ApprovalState, toolInput: unknown, principal: FabricPrincipal, toolCallId: string): ApprovalGrant | undefined; export declare function sameApprovalOperation(grant: ApprovalGrant, input: { toolCallId: string; toolInput: unknown; principal: FabricPrincipal; }): boolean; //# sourceMappingURL=approval.d.ts.map