import type { ProviderRegistration } from "./types.js"; /** * Largest response body accepted, comfortably above a 16 MP PNG (the biggest * thing Reve produces) while still bounding what a single reply can pin in * memory as text, parsed JSON and a decoded buffer at once. */ export declare const MAX_RESPONSE_BYTES: number; /** * Read a response body as text, giving up once `limit` bytes have arrived. * * `response.text()` would buffer whatever the server sends, so the cap has to * be applied while reading rather than afterwards: `Content-Length` is only a * claim, and it is absent entirely on a chunked response. The declared length * is still honoured first, as it lets an oversized reply be refused without * transferring it. * * Exported for tests, which exercise the boundaries with a small limit rather * than allocating the real one. */ export declare function readBoundedText(response: Response, limit: number): Promise; export declare function createReveProvider(apiKey: string): ProviderRegistration; //# sourceMappingURL=reve.d.ts.map