/// 
/// 
/// 
import type { IncomingHttpHeaders, IncomingMessage } from 'http';
import Params from './body/params.js';
declare type BusboyFile = [
    fieldname: string,
    file: NodeJS.ReadableStream,
    filename: string,
    encoding: string,
    mimetype: string
];
interface FileUpload {
    fieldname: string;
    file: NodeJS.ReadableStream;
    filename: string;
    encoding: string;
    mimetype: string;
}
export default class Body {
    raw: IncomingMessage;
    _form: Params | undefined;
    constructor(stream: IncomingMessage);
    [Symbol.asyncIterator](): AsyncIterable;
    buffer(): Promise;
    files(options?: busboy.BusboyConfig): AsyncIterableIterator;
    form(options?: busboy.BusboyConfig): Promise;
    get(name: string): string | undefined;
    get headers(): IncomingHttpHeaders;
    html(): Promise;
    get isSecure(): boolean;
    json(): Promise;
    pipe(writer: NodeJS.WritableStream): Promise;
    text(charset?: BufferEncoding): Promise;
    xml(): Promise;
    _consumeBody(): Promise;
    _formIterator(options?: busboy.BusboyConfig): AsyncIterableIterator;
    _isForm(): boolean;
    get _params(): Params;
}
export {};