import { Duplex } from "readable-stream";
import { BufferEncoding } from "./interfaces";
export default class Substream extends Duplex {
    private readonly _parent;
    private readonly _name;
    constructor({ parent, name }: {
        parent: any;
        name: string;
    });
    /**
     * Explicitly sets read operations to a no-op.
     */
    _read(): void;
    /**
     * Called when data should be written to this writable stream.
     *
     * @param chunk - Arbitrary object to write
     * @param encoding - Encoding to use when writing payload
     * @param callback - Called when writing is complete or an error occurs
     */
    _write(chunk: unknown, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
}
