export type JsonRecord = Record; /** Narrow a parsed JSON value to a record, defaulting non-objects to `{}` — * the `isRecord(json) ? json : {}` idiom the REST bridges repeated so they * never have to cast `JSON.parse` output. */ export declare function asJsonRecord(json: unknown): JsonRecord; /** `fetch` + non-2xx guard + JSON-record narrow. Callers own the URL, auth * headers, and timeout (via `init.signal`); `errorLabel` prefixes the thrown * non-2xx error (e.g. "GET /im.list"). Network errors propagate from `fetch` * unchanged, matching the callers' existing try/catch expectations. */ export declare function fetchJsonRecord(url: string, init: RequestInit, errorLabel: string): Promise;