import type { Command } from "./types.ts";
import { type ParseResult } from "./arguments.ts";
type FoundCommand = ({
    command: Command;
} & ParseResult) | {
    command?: Command;
    error: string;
    completionSubcommands?: Record<string, {
        description: string;
    }>;
};
export declare const findCommand: (args: string[]) => FoundCommand;
export declare const parse: (argv?: string[]) => Promise<unknown>;
export {};
