export interface Write { /** Writes the given value to this stream */ write(value: T): Promise; /** Ends this stream */ close(): Promise; }