import type { NestContext } from '#adapter/core/context'; declare const bytesOf: (chunk: unknown) => Uint8Array; declare const writeBody: (context: NestContext, chunks: readonly Uint8Array[]) => void; type LifecycleMethod = 'addListener' | 'off' | 'on' | 'once' | 'removeListener'; interface ListenRequest { readonly event: string; readonly listener: () => void; readonly method: LifecycleMethod; } declare const attach: (context: NestContext, request: ListenRequest) => unknown; declare const attachTo: (context: NestContext, method: LifecycleMethod) => (event: string, listener: () => void) => unknown; export { attach, attachTo, bytesOf, writeBody }; export type { LifecycleMethod }; //# sourceMappingURL=response-body.d.ts.map