///
import {DuplexOptions} from 'node:stream';
import {TypedDuplex} from './typed-streams';
import {Arg0, Ret} from './defs';
export = asStream;
/**
* Wraps a function in a duplex stream
* @param fn function to wrap
* @param options options for the wrapping duplex stream
* @returns a duplex stream
*/
declare function asStream unknown>(
fn: F,
options?: DuplexOptions
): TypedDuplex, Ret>;