import { type CliContext } from "./io.ts"; /** * Top-level entry point. Always resolves with an exit code; never throws. * * Lifecycle: * 1. Extract first positional as the subcommand name. * 2. Dispatch to that subcommand's `run*` function with a shifted argv. * 3. Any `CliError` thrown by a subcommand is rendered to stderr with * its embedded exit code returned verbatim. * 4. Any other exception is mapped to `EXIT_DOWNSTREAM` with the * original message preserved. */ export declare function main(ctx: CliContext): Promise; //# sourceMappingURL=main.d.ts.map