/** * Supported circuit kinds for the decider service. */ export type CircuitKind = "root" | "withdraw_local" | "withdraw_global"; /** * Configuration options for {@link HttpDeciderClient}. */ export interface DeciderClientOptions { /** * Poll interval (milliseconds) used while waiting for job completion. * @defaultValue `DEFAULT_DECIDER_POLL_INTERVAL_MS` */ pollIntervalMs?: number; /** * Max time (milliseconds) to wait for a job to complete before failing. * @defaultValue `DEFAULT_DECIDER_TIMEOUT_MS` */ timeoutMs?: number; /** Optional custom fetch implementation (useful for tests or environments without global fetch). */ fetchImpl?: typeof fetch; } export declare class HttpDeciderClient { private readonly http; private readonly pollInterval; private readonly timeout; /** * Create a decider client. * @param baseUrl - Decider service base URL. * @param options - Polling and fetch options. */ constructor(baseUrl: string, options?: DeciderClientOptions); /** * Submit an IVC proof to the decider service and poll until the decider proof is produced. * @remarks * This method: * - Submits a job via `POST /jobs` * - Polls `GET /jobs/:id` until status is `completed` or `failed` * * There is no retry/backoff strategy beyond fixed-interval polling. * Network and non-OK HTTP responses are surfaced as thrown errors. * * @param circuit - Circuit kind to run on the service. * @param ivcProof - IVC proof bytes. Accepts `Uint8Array` or a `0x`-prefixed hex string. * @returns Decider proof bytes (`Uint8Array`). * @throws If job submission fails, status polling fails, job fails, or timeout is reached. */ produceDeciderProof(circuit: CircuitKind, ivcProof: Uint8Array | string): Promise; } //# sourceMappingURL=prover.d.ts.map