/** * Returns a function that will receive errors (or anything else that was `throw`n) * and prints it to a {@linkcode NodeJS.WriteStream}. * @param stream - The stream to print errors to. * @returns A function that will print errors to the stream. */ export declare const redirectErrorsToStream: (stream: NodeJS.WriteStream) => ((error: unknown) => void);