/// <reference types="node" />
import stream from "stream";
export declare function end(endable: stream.Writable, contents?: string): Promise<void>;
export declare function mapNotDestroyed<T extends stream.Readable | stream.Writable, R>(obj: T | undefined | null, f: (t: T) => R): R | undefined;
