import type { WhookOperation, WhookResponse } from '@whook/http-transaction'; import type { WhookBodySpec } from './utils.js'; import type { JsonValue } from 'type-fest'; import type { WhookEncoders, WhookParsers, WhookDecoders, WhookStringifyers } from '../index.js'; import type { Transform, Readable } from 'stream'; export declare function getBody({ DECODERS, PARSERS, bufferLimit, }: { DECODERS?: WhookDecoders; PARSERS?: WhookParsers; bufferLimit: number; }, operation: WhookOperation, inputStream: Readable, bodySpec: WhookBodySpec): Promise; export declare function sendBody({ ENCODERS, STRINGIFYERS, }: { ENCODERS?: WhookEncoders; STRINGIFYERS?: WhookStringifyers; }, response: WhookResponse): Promise;