/** @module Interface wasi:cli/stderr@0.3.0 **/ /** * Write the given stream to stderr. * * If the stream's writable end is dropped this function will either return * success once the entire contents of the stream have been written or an * error-code representing a failure. * * Otherwise if there is an error the readable end of the stream will be * dropped and this function will return an error-code. */ export function writeViaStream(data: ReadableStream): Promise>; export type ErrorCode = import('./wasi-cli-types.js').ErrorCode; export type Result = { tag: 'ok', val: T } | { tag: 'err', val: E };