import { SSchemaEl } from '../Meta/SwaggerTypes.js'; export type IfMappingKeyType = { key: string; type: string; required?: boolean; nullable?: boolean; }; export type IfMappingType = { name: string; keys: IfMappingKeyType[]; rawType?: string; }; /** * Returns a string representation of the given value. If the value is falsy, * an empty string is returned. * * @param e - The value to convert to a string. * @returns The string representation of `e`, or an empty string if `e` is falsy. */ export declare function eS(e: any): string; /** * Returns a type annotation delimiter based on whether a value is required. * * @param {boolean} [required] - Indicates if the value is required. If omitted or false, the value is considered optional. * @returns {string} A colon (`:`) for required values or a question mark followed by a colon (`?:`) for optional values. */ export declare function rq(required?: boolean): string; /** * Returns a type representation based on whether the value should be nullable. * * @param {string} type - The base type name to return when the value is not nullable. * @param {boolean} nullable - Indicates if the type should be considered nullable. If `true`, the function returns a colon (`:`); if `false`, it returns the original type string. * @return {string} The original type string when `nullable` is `false`, otherwise a colon (`:`) to represent a nullable type in the consuming context. */ export declare function rN(type: string, nullable?: boolean): string; export declare function sK(e: string): string; /** * Cast first letter to uppercase * @param e */ export declare function fuc(e: string): string; /** * Spacing function * @param c number of spaces */ export declare function S(c: number): string; export declare enum IFTag { 'RequestBody' = "RequestBody", 'Response' = "Response" } /** * InterfaceName secure function */ export declare function saveName(inp: string): string; /** * InterfaceName Helper function */ export declare function ifName(operation: string, tag: IFTag | string, use?: boolean): string; export declare function typeByRef(ref: string, use?: boolean): string; /** * Map schema to typescript interface * @param operation * @param tag * @param schema */ export declare function transformInterface(operation: string, tag: IFTag | string, schema: SSchemaEl): IfMappingType[]; /** * Map schema to typescript interface * @param operation * @param tag * @param schema */ export declare function transformFormInterface(operation: string, tag: IFTag | string): IfMappingType[];