/** * A custom `Response` class that represents a fragment of a JSON response. * @augments Response */ export declare class FragmentResponse extends Response { /** * The URL of the response. * @type {string} */ url: string; /** * The JSON body of the response. * @type {any} */ jsonBody: any; /** * The response that this fragment was generated from. */ parent: ResponseType | undefined; /** * Creates a new `FragmentResponse` instance. * @param {any} [jsonBody] - The JSON body of the response. * @param {ResponseInit & {url: string}} [init] - The `ResponseInit` options for the response, including the URL. * @param parent The response that this fragment was generated from. */ constructor(jsonBody?: any, init?: ResponseInit & { url: string; }, parent?: ResponseType); /** * Returns a promise that resolves to the JSON body of the response. * @returns {Promise} - A promise that resolves to the JSON body of the response. */ json(): Promise; /** * Returns a promise that resolves to a stringified version of the JSON body of the response. * @returns {Promise} - A promise that resolves to a stringified version of the JSON body of the response. */ text(): Promise; /** * Returns a `ReadableStream` of the JSON body of the response. * @returns {ReadableStream | null} - A `ReadableStream` of the JSON body of the response, or `null` if the JSON body is undefined. */ get body(): ReadableStream | null; } //# sourceMappingURL=fragment-response.d.ts.map