import { Tree } from '@nx/devkit'; import { CommonSchema } from './helpers'; export interface IPluginSettings { prefix?: string; groupByName?: boolean; framework?: FrameworkTypes; } export type PlatformTypes = 'nativescript'; export type FrameworkTypes = 'angular' | 'vanilla'; export declare const supportedPlatforms: Readonly; export declare const supportedFrameworks: Readonly; export declare const enum WorkspaceSetting { NATIVESCRIPT_NX = "nativescript-nx", XPLAT = "xplat" } export declare function getPrefix(): string; export declare function getFrontendFramework(): FrameworkTypes; export declare function getGroupByName(): boolean; export declare function getBaseName(options: { directory: string; }, platform: PlatformTypes): string; export declare function isXplatWorkspace(): boolean; export declare function inferPluginSettingKey(): WorkspaceSetting; export declare function getDefaultTemplateOptions(tree: Tree): { tmpl: string; utils: { decamelize(str: string): string; dasherize(str?: string): string; camelize(str: string): string; classify(str: string): string; underscore(str: string): string; capitalize(str: string): string; group(name: string, group: string | undefined): string; featurePath(group: boolean | undefined, flat: boolean | undefined, path: string, name: string): string; sanitize: (str: string) => string; }; npmScope: string; prefix: string; dot: string; standaloneAsDefault: boolean; }; export declare function preRun(tree: Tree, options?: Readonly, init?: boolean): CommonSchema; export declare function sanitizeCommaDelimitedArg(input: string): string[]; /** * Sanitizes a given string by removing all characters that * are not letters or digits. * ```javascript sanitize('nativescript-app'); // 'nativescriptapp' sanitize('action_name'); // 'actioname' sanitize('css-class-name'); // 'cssclassname' sanitize('my favorite items'); // 'myfavoriteitems' ``` @method sanitize @param {String} str The string to sanitize. @return {String} the sanitized string. */ export declare const sanitize: (str: string) => string; export declare function toFileName(s: string): string; export declare const stringUtils: { decamelize(str: string): string; dasherize(str?: string): string; camelize(str: string): string; classify(str: string): string; underscore(str: string): string; capitalize(str: string): string; group(name: string, group: string | undefined): string; featurePath(group: boolean | undefined, flat: boolean | undefined, path: string, name: string): string; sanitize: (str: string) => string; };