#!/usr/bin/env node /** * Command-line entry point. * * Output discipline: anything that is the *result* of a command goes to stdout * (`--info`'s channel table, `--json`'s summary). Progress, warnings and the * conversion summary go to stderr, so a conversion can be run in a pipeline without * its chatter contaminating the data. */ import { defaultOutputDir } from './convert/run.js'; export declare function main(argv: readonly string[]): Promise; /** * The exit code for a run in which several files failed for different reasons. * * 2 means "you invoked it wrong" and 1 means "something went wrong with a file". When both * happened, 1 is the honest answer: the invocation cannot be the whole story once a file has * genuinely failed. With a single input there is only ever one code, so its exit status is * exactly what it always was. */ declare function worstOf(codes: readonly number[]): number; /** * How many conversions to run at once. * * `auto` is one per core, less one, so a long batch does not take the machine over. A batch * is the only place this means anything: a single recording is a single conversion however * many jobs are asked for. */ declare function parseJobs(raw: unknown, inputs: number): number; export { defaultOutputDir, parseJobs, worstOf };