type ApiCommandHandler = (args: string[]) => Promise<void>;
type ApiCommandHelpHandler = () => Promise<void>;
type ApiCommandUnknownHandler = (command: string) => Promise<void>;
export interface ApiCommandDependencies {
    help: ApiCommandHelpHandler;
    unknown: ApiCommandUnknownHandler;
    create: ApiCommandHandler;
    list: ApiCommandHandler;
    discover: ApiCommandHandler;
    copy: ApiCommandHandler;
    export: ApiCommandHandler;
    import: ApiCommandHandler;
    remove: ApiCommandHandler;
}
/**
 * Factory for building an api-command handler with injectable dependencies.
 * Extracted from index.ts so tests can import without loading all subcommand modules.
 */
export declare function createApiCommandHandler(dependencies: ApiCommandDependencies): (args: string[]) => Promise<void>;
export {};
//# sourceMappingURL=handler.d.ts.map