export declare function trimLeadingSlash(input: string): string; export declare function trimTrailingSlash(input: string): string; export declare function getFileNameIfExt(fileName: string, ext: string): string | null; export declare function normalizeLineBreaks(input: string): string; /** * Returns the namespace path, that is, the part before the last '.' split by '/' instead of '.'. * If there's no namespace, returns undefined. */ export declare function namespace(refPath: string): string | undefined; /** * Converts a text to a basic, letters / numbers / underscore representation. * When firstNonDigit is true, prepends the result with an underscore if the first char is a digit. */ export declare function toBasicChars(input: string, firstNonDigit?: boolean): string; /** Returns the type (class) name for a given regular name */ export declare function typeName(name: string): string; /** * Returns a suitable method name for the given name * @param name The raw name */ export declare function methodName(name: string): string; /** Returns the file name for a given type name */ export declare function fileName(text: string): string; /** Returns the reference name, that is, the last part after '/' */ export declare function refName(fullRef: string): string; /** Escapes the name of a property / parameter if not valid JS identifier */ export declare function escapeId(name: string): string; /** Returns the TypeScript comments for the given schema description, in a given indentation level */ export declare function tsComments(description: string | undefined, level: number, deprecated?: boolean): string;