import { type CwdOption } from '../utils/validation/file-existence'; import type { PackageJson } from '../interfaces'; import type { Spinner } from '../utils/terminal/spinner-service'; /** Generates an action file name out of the action name */ export declare function nameToActionFileName(name: string): string; /** Generates an action test file name out of the action name */ export declare function nameToActionTestFileName(name: string): string; /** Check if an action with the name already exists */ export declare function checkIfActionExists(options: { /** Relative path where the actions are located */ actionsDir: string; /** The name of the action to check for existence. */ name: string; } & CwdOption): boolean; /** Check if an action with the name already exists */ export declare function checkIfActionTestExists(options: { /** Relative path where the actions are located */ actionsDir: string; /** The name of the action to check for existence. */ name: string; } & CwdOption): boolean; /** Check if an action with the name already exists */ export declare function checkIfWidgetExists(options: { /** Relative path where the actions are located */ actionsDir: string; /** The name of the widget to check for existence. */ name: string; } & CwdOption): boolean; /** Check if a widget with the name already exists */ export declare function checkIfWidgetTestExists(options: { /** Relative path where the actions widgets are located */ actionsDir: string; /** The name of the widget to check for existence. */ name: string; } & CwdOption): boolean; /** Generates a widget file name out of the action name */ export declare function nameToWidgetFileName(name: string): string; /** Generates a widget test file name out of the action name */ export declare function nameToWidgetTestFileName(name: string): string; /** Converts `string` to title case. */ export declare function titleCase(string?: string): string; /** Installs the specified dependencies into a project's `package.json`. */ export declare function installDependencies(options: { /** An array of [dependency, version] tuples to install. */ dependencies: string[][]; /** The type of the dependencies to install. */ dependenciesType: 'dependencies' | 'devDependencies'; /** If true, simulates installation without altering the file system.. */ dryRun?: boolean; /** * The spinner owned by the calling command. When provided, its text is temporarily switched * to {@link INSTALLING_DEPENDENCIES_SPINNER_TEXT} only when an npm install will actually run, * and restored afterwards (success or failure). Avoids a text flicker when all dependencies * are already present and no install is needed. */ spinner?: Spinner; } & CwdOption): Promise; /** Get package json content. */ export declare function getPackageJson(options: CwdOption): PackageJson;