/** * Fetches JSON from a URL using Staffbase session credentials. * * Throws {@link ApiError} (carrying the HTTP status) on a non-2xx response so * callers can branch on the status. Network/parse errors propagate as-is. This * helper does not log; the calling service layer owns error logging. * @template T The expected shape of the parsed JSON body. * @param {string} url - The API URL to fetch. * @param {RequestInit} [init] - Optional fetch overrides (merged after credentials). * @returns {Promise} The parsed JSON body. * @throws {ApiError} When the response status is not ok. */ export declare const fetchJson: (url: string, init?: RequestInit) => Promise; //# sourceMappingURL=fetchJson.d.ts.map