/** * Returns a message that describes the allowed characters for a filename * @param label The label to use in the message (e.g., "widget name") * @returns A string message describing the allowed characters for a filename */ export declare function invalidFilenameMessage(label: string): string; /** * Validates whether the name for the new action/function contain valid characters * @param name The name we want to validate * @returns True if name contain allowed characters */ export declare function checkIfNameIsValid(name: string): boolean; /** * Resolves the final name for a create command: validates the supplied argument, * clears it when invalid, then prompts interactively when no valid name remains. * @param options.name Raw name argument (may be empty). * @param options.label Lowercase label used in filename-validation messages, e.g. `'action name'`. * @param options.displayName Capitalized display name used in user-facing errors, e.g. `'Action name'`. * @param options.nonInteractive Whether the command is running in non-interactive mode. * @param options.promptMessage The message shown in the interactive prompt. * @param options.onBeforePrompt Called once just before the prompt is shown (use for telemetry). * @param options.additionalValidate Optional extra validation after the standard checks. Return an error string or `true`. * @returns The resolved name and whether a blank line should be printed before output. */ export declare function resolveNameWithPrompt(options: { name: string; label: string; displayName: string; nonInteractive: boolean; promptMessage: string; onBeforePrompt?: () => void; additionalValidate?: (input: string) => string | true; }): Promise<{ name: string; addNewLine: boolean; }>;