import { type PartialReloadOptions } from './partial-reload.js'; import { type HydrationManifestPayload, type SsrDocumentOptions, type SsrStreamOptions } from './ssr.js'; import { type SseEvent } from './sse.js'; export declare function getFactoryStringBody(response: Response): string | undefined; export declare function getFactoryBufferBody(response: Response): Uint8Array | undefined; export declare function trackStringBody(response: Response, body: string): Response; export declare function trackBufferBody(response: Response, body: Uint8Array): Response; export type { HydrationManifestPayload, PartialReloadOptions, SsrDocumentOptions, SsrStreamOptions, SseEvent, }; export declare class ResponseFactory { json(data: unknown, init?: ResponseInit): Response; html(body: string, init?: ResponseInit): Response; partial(body: string, options?: PartialReloadOptions, init?: ResponseInit): Response; ssr(body: string, options?: SsrDocumentOptions, init?: ResponseInit): Response; ssrStream(source: AsyncIterable | ReadableStream, options?: SsrStreamOptions, init?: ResponseInit): Response; sse(source: AsyncIterable, init?: ResponseInit): Response; streamHtml(source: AsyncIterable | ReadableStream, init?: ResponseInit): Response; text(body: string, init?: ResponseInit): Response; make(body: string, init?: ResponseInit): Response; xml(body: string, init?: ResponseInit): Response; redirect(location: string, status?: number, request?: { url: string | URL; }): Response; noContent(status?: number): Response; } export declare const Response: ResponseFactory; //# sourceMappingURL=response.d.ts.map