/* tslint:disable */ /* eslint-disable */ /** * A coinset.org client for wasm hosts. * * The single trust note (see SPEC): this build drops chia-query's peer tier, * so a wasm consumer reads from ONE coinset endpoint with no peer cross-check. * Verification must stay client-side (e.g. singleton-lineage / anti-rollback * checks on top), the endpoint is configurable, and multi-endpoint * cross-checking is left open for the future. */ export class CoinsetClient { free(): void; [Symbol.dispose](): void; /** * Create a client for `base_url` (e.g. `"https://api.coinset.org"`) that * issues requests through the injected `fetch` function — pass the host's * `fetch` (`window.fetch` in a browser, the global `fetch` in Node 18+). */ constructor(base_url: string, fetch: Function); /** * POST `body` (a JS object) to `endpoint` and resolve with the parsed JSON * response. Rejects when coinset returns `success: false` (the rejection * carries the structured error message). */ request(endpoint: string, body: any): Promise; /** * POST `body` to `endpoint` and resolve with the raw JSON response, * without the `success` gate — useful for inspecting error envelopes. */ requestRaw(endpoint: string, body: any): Promise; }