/** The outcome of a {@link run}: exit code plus the text it would print. */ export type RunResult = { code: number; stdout: string; stderr: string; }; /** * Runs the linter over `argv`, returning the exit code and the text it would * print (rather than writing to the process streams) so it can be driven * in-process by tests. `stdin` supplies the piped document when there are no file * targets; when omitted it is read from `process.stdin`. */ export declare const run: (argv: string[], options?: { stdin?: string; }) => Promise;