import type { paths } from './generated.js'; import { type Verbs } from './verbs.js'; export type FetchFn = typeof globalThis.fetch; export interface CreateTrueblocksClientOptions { /** * Base URL of the chifra daemon, e.g. `'http://localhost:8080'`. * A trailing slash is allowed and stripped. */ baseUrl: string; /** * Optional fetch override. Defaults to `globalThis.fetch`. Useful * for tests, custom transports, or environments that need to wrap * the fetch call (auth headers, retry, instrumentation). */ fetch?: FetchFn; } /** * Internal request function used by every verb. Verbs are pure * factories that take this and return their typed callable — tests * inject a mock to exercise verb logic without hitting fetch. */ export type RequestFn = (path: keyof paths, query?: Record) => Promise; export type TrueblocksClient = Verbs; export declare function createTrueblocksClient(options: CreateTrueblocksClientOptions): TrueblocksClient; //# sourceMappingURL=client.d.ts.map