/** * Given a string, returns a version of it that is safe to be used as a variable identifier in TypeScript. * * @param input - string to create a variable name for * @returns a string that can be used as a variable identifier in TypeScript */ export declare function stringToVariableName(input: string): string; export type TakenNamesSet = { [name: string]: any; }; /** * Given a metadata object title, this function figures out the ideal name for the variable that should * represent the object in a TypeScript code. * * This function can also work with a mapping of used variable names. If the determined variable name is found * as used, it will append a number (1, 2 etc) to make the variable name unique. The provided mapping will be * used read-only. The value of the mapping is not used for anything - the mere presence of the key in the mapping * indicates the name is used. * * @param title - object title * @param scope - uniqueness scope */ export declare function createUniqueVariableName(title: string, scope?: TakenNamesSet): string; /** * Ensure provided name is unique within the desired scope. The scope is expected to be an object which contains * key per name that is already used within some logical scope. The value associated with the key is irrelevant. * * Uniqueness is ensured by appending a sequence number to the input name. * * @param name - name to ensure uniqueness of * @param scope - uniqueness scope */ export declare function createUniqueName(name: string, scope: object): string; //# sourceMappingURL=titles.d.ts.map