/** * Convert a string to PascalCase, handling invalid identifier characters. */ export declare function toTypeName(name: string): string; /** * Returns a name that is unique within the provided set. * If the candidate already exists, appends _2, _3, ... until a free slot is found. * The chosen name is added to the set before returning. */ export declare function uniquifyName(candidate: string, used: Set): string; /** * Resolve a JSON Schema $ref (e.g. '#/components/schemas/Foo') to a TypeScript * identifier. When a renameMap is provided (built by the dedup pass), the raw * schema name is looked up first so renamed identifiers are referenced correctly. */ export declare function refToTypeName(ref: string, renameMap?: Map): string; /** * Reserved JavaScript keywords. An operation name that matches any of these * is prefixed with an underscore to avoid syntax errors in generated code. */ export declare const RESERVED: Set; /** * Converts a raw operationId (or path segment) into a valid camelCase JS identifier. * Handles kebab-case, snake_case, dots, spaces, parens, braces and other * non-alphanumeric separators found in real-world OpenAPI specs. * e.g. "post-applePay-sessions" -> "postApplePaySessions" * e.g. "calendar.calendars.insert" -> "calendarCalendarsInsert" * e.g. "Get User Profile" -> "getUserProfile" * e.g. "forgotPassword(oneTimeCode)" -> "forgotPasswordOneTimeCode" */ export declare function sanitizeOperationId(id: string): string; /** * Derives a camelCase operation name from an HTTP method and path, for use * when an operation has no operationId. Handles plain path params ({id}), * mixed-brace segments ({lat}.{lon}.{format}), and /api/v{N}/ prefix stripping. * * This is the canonical implementation shared by both the fetch client and * the React Query hook generators. Both must use the same function to ensure * generated hook calls reference client functions that actually exist. * * e.g. GET /tasks -> "getTasks" * e.g. GET /tasks/{id} -> "getTasksById" * e.g. GET /{x}/{y}.{fmt} -> "getByXByYByFmt" (mixed-brace) */ export declare function deriveOperationName(method: string, path: string): string; /** * Return a property key, adding quotes if the name contains special characters * that would make it invalid as an unquoted identifier. */ export declare function toPropertyKey(name: string): string; //# sourceMappingURL=naming.d.ts.map