/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Bytes } from "@matter/general";
import { BdxMessageType } from "@matter/types";
import { Flow } from "./Flow.js";
/**
 * Base class for inbound BDX transfer flows where data is received from the peer and written to our node.
 */
export declare abstract class InboundFlow extends Flow {
    #private;
    /**
     * Returns initialized streams for the transfer and initializes the #closeStream class function
     */
    protected initTransfer(): Promise<void>;
    protected get stream(): {
        writeController: ReadableStreamDefaultController<AllowSharedBufferSource>;
        writePromise: PromiseLike<void>;
    };
    protected finalizeTransfer(): Promise<void>;
    protected writeDataChunk(writeController: ReadableStreamDefaultController<Bytes>, data: Bytes, messageType: BdxMessageType): boolean;
    close(error?: unknown): Promise<void>;
}
//# sourceMappingURL=InboundFlow.d.ts.map