import type { LazyCommandLoader } from './custom-oclif-loader.js'; /** * IMPORTANT NOTE: Imports in this module are dynamic to ensure that "setupEnvironmentVariables" can dynamically * set the DEBUG environment variable before the 'debug' package sets up its configuration when modules * are loaded statically. */ interface RunCLIOptions { /** The value of import.meta.url of the CLI executable module */ moduleURL: string; development: boolean; /** Optional lazy command loader for on-demand command loading */ lazyCommandLoader?: LazyCommandLoader; } /** * A function that abstracts away setting up the environment and running * a CLI * @param options - Options. */ export declare function runCLI(options: RunCLIOptions & { runInCreateMode?: boolean; }, launchCLI?: (options: { moduleURL: string; lazyCommandLoader?: LazyCommandLoader; }) => Promise, argv?: string[], env?: NodeJS.ProcessEnv, versions?: NodeJS.ProcessVersions): Promise; /** * A function for create-x CLIs that automatically runs the "init" command. */ export declare function runCreateCLI(options: RunCLIOptions, launchCLI?: (options: { moduleURL: string; }) => Promise, argv?: string[], env?: NodeJS.ProcessEnv, versions?: NodeJS.ProcessVersions): Promise; /** * An object that contains the flags that * are shared across all the commands. */ export declare const globalFlags: { 'no-color': import("@oclif/core/interfaces").BooleanFlag; verbose: import("@oclif/core/interfaces").BooleanFlag; }; export declare const jsonFlag: { json: import("@oclif/core/interfaces").BooleanFlag; }; export declare const authAliasFlag: { 'auth-alias': import("@oclif/core/interfaces").OptionFlag; }; /** * Builds a `--port` flag that only accepts a valid port number. The flag parses its * value as an integer and rejects anything that isn't a whole number between 1 and * 65535, so commands fail with a clear message instead of crashing on an out-of-range * port. The accepted range is appended to the description so it shows up in `--help`. * @param options - Optional overrides for the flag's description, environment variable, and visibility. * @returns An oclif integer flag constrained to the valid port range. */ export declare const portFlag: (options?: { description?: string; env?: string; hidden?: boolean; }) => import("@oclif/core/interfaces").OptionFlag; /** * Marks a flag as required when the CLI cannot prompt for a value. * * The flag remains optional in interactive terminals. In non-interactive environments, * `BaseCommand` validates the flag automatically and the requirement is shown in `--help`. * Use `BaseCommand.nonTTYFlagRequirements` for conditional or alternative requirements. * * @param flag - An oclif flag definition. * @returns A new flag definition annotated for non-interactive validation and help output. */ export declare function requiredIfNonInteractive(flag: TFlag): TFlag; /** * Clear the CLI cache, used to store some API responses and handle notifications status */ export declare function clearCache(): Promise; export {};