import type { WS } from "insite-ws/client";
import type { WSServer, WSServerClient } from "insite-ws/server";
import { IncomingTransfer } from "./IncomingTransfer";
import type { IncomingTransferListener, IncomingTransferListenerOptions, IncomingTransportOptions, TransferTypes } from "./types";
export declare class IncomingTransport<WSORWSSC extends WS | WSServerClient, T extends IncomingTransfer<WSORWSSC>, Types extends TransferTypes = TransferTypes> {
    #private;
    constructor(ws: WS | WSServer<Exclude<WSORWSSC, WS>>, options?: IncomingTransportOptions);
    sizeLimit: number;
    addTransferListener(kind: string, listener: IncomingTransferListener<WSORWSSC, T>, options?: IncomingTransferListenerOptions): this;
    on: (kind: string, listener: IncomingTransferListener<WSORWSSC, T>, options?: IncomingTransferListenerOptions) => this;
    once(kind: string, listener: IncomingTransferListener<WSORWSSC, T>, options?: Omit<IncomingTransferListenerOptions, "once">): this;
    removeTransferListener(kind: string, listener?: IncomingTransferListener<WSORWSSC, T>): this;
    off: (kind: string, listener?: IncomingTransferListener<WSORWSSC, T>) => this;
    private handleRequest;
    private handleChunk;
    private handleSent;
    private handleAbort;
    static Transfer: typeof IncomingTransfer;
}
//# sourceMappingURL=IncomingTransport.d.ts.map