import { LegoProvingKey } from '@docknetwork/crypto-wasm-ts/lib/legosnark'; import { PresentationBuilder } from '@docknetwork/crypto-wasm-ts/lib'; interface Filter { type: string; format: string; formatMaximum?: string; formatMinimum?: string; } interface Field { path: string[]; filter: Filter; predicate: string; } interface Constraints { fields: Field[]; } interface InputDescriptor { id: string; name: string; purpose: string; constraints: Constraints; } interface Request { id: string; input_descriptors: InputDescriptor[]; } interface ProofRequest { qr: string; id: string; name: string; nonce: string; created: string; updated: string; verified: boolean; response_url: string; request: Request; type: string; boundCheckSnarkKey?: string; } /** * Receive a presentation builder and a proof request template * Convert the proof request template into enforce bound calls on the presentation builder * @param param0 */ export declare function applyEnforceBounds({ builder, proofRequest, provingKeyId, provingKey, selectedCredentials, }: { builder: PresentationBuilder; proofRequest: ProofRequest; selectedCredentials: any[]; provingKeyId: string; provingKey: LegoProvingKey; }): any[]; export declare function fetchBlobFromUrl(url: string): Promise; export declare function blobFromBase64(base64String: string): Uint8Array; export declare function isBase64OrDataUrl(str: string): Promise; export declare function fetchProvingKey(proofRequest: ProofRequest): Promise<{ provingKey: LegoProvingKey; provingKeyId: string; }>; export declare const hasProvingKey: (proofRequest: ProofRequest) => boolean; export {}; //# sourceMappingURL=bound-check.d.ts.map