import type { CliContext } from "./types";
declare function optStr(v: unknown): string | undefined;
type ParsedCli = {
    kind: "version";
} | {
    kind: "help";
} | {
    kind: "help_command";
    command: string;
} | {
    kind: "arg_error";
    message: string;
} | {
    kind: "no_command";
} | {
    kind: "run";
    command: string;
    context: CliContext;
};
declare function parseCliArgv(argv: string[]): ParsedCli;
export type { ParsedCli };
export { parseCliArgv, optStr };
