import type { CookieOptions } from './cookies.js'; export declare class ResponseBuilder { private _status; private _headers; private _body; /** @internal */ _modified: boolean; private ensureHeaders; status(code: number): this; header(name: string, value: string): this; json(data: unknown): this; text(data: string): this; html(data: string): this; /** * Append a `Set-Cookie` header. Uses `append` (not `set`) so multiple cookies * accumulate, and marks the response modified so the fast path does not drop * headers. Defaults `path` to `'/'`. `options.maxAge` is in **seconds**. */ cookie(name: string, value: string, options?: CookieOptions): this; /** Expire a cookie by setting an epoch `Expires` and `Max-Age=0`. Defaults `path` to `'/'`. */ deleteCookie(name: string, options?: { path?: string; domain?: string; }): this; redirect(url: string, status?: number): this; stream(readable: ReadableStream): this; build(): Response; getStatus(): number; getHeaders(): Headers; } //# sourceMappingURL=response.d.ts.map