UNPKG

@jawis/stdio-filter

Version:
18 lines (17 loc) 629 B
/// <reference types="node" /> /// <reference types="node" /> import { MakeIncludeLineDeps, MakeMapLineDeps } from "./internal"; /** * */ export declare const makeStdioFilter: (deps: { ignoreLiteralLines?: string[] | undefined; includeLine?: ((line: string) => boolean) | undefined; includeJson?: ((obj: any) => boolean) | undefined; } & MakeMapLineDeps & { streamOutput: (str: string) => void; onLineShown: (str: string) => void; mapLineBeforeOutput?: ((line: string) => string) | undefined; timeout: number; emitDotForIgnoredLines?: boolean | undefined; }) => (data: string | Buffer) => void;