#!/usr/bin/env node declare function readPackageVersion(pkgRoot?: string): Promise; declare function main(): Promise; /** Dispatches one CLI domain and returns its process exit code. */ export declare function runDomainCommand(domain: string | undefined, args: string[], workingDirectory: string, projectRoot: string): Promise; interface GlobalCliOptions { args: string[]; stateRoot?: string; noDotEnv: boolean; timeoutSeconds?: number; } declare function isHelpRequest(args: string[]): boolean; declare function isVersionRequest(args: string[]): boolean; declare function runHelpCommand(args: string[], workingDirectory: string): Promise; declare function resolveHelpDomain(args: string[]): string | undefined; declare function mapBundleSubcommandForHelp(args: string[]): string[]; declare function parseGlobalOptions(args: string[]): GlobalCliOptions; /** Exposes CLI dispatch helpers for focused tests. */ export declare const cliInternals: { mapBundleSubcommandForHelp: typeof mapBundleSubcommandForHelp; runDomainCommand: typeof runDomainCommand; runHelpCommand: typeof runHelpCommand; parseGlobalOptions: typeof parseGlobalOptions; resolveHelpDomain: typeof resolveHelpDomain; isHelpRequest: typeof isHelpRequest; isVersionRequest: typeof isVersionRequest; readPackageVersion: typeof readPackageVersion; main: typeof main; }; export {};