import { RefResolver } from './ref-utils'; /** * Shared utility for determining if a schema should be emitted/extracted as a STRUCT. * Fixes Bug #2 by ensuring extractMethods and extractStructs use the exact same logic. */ export declare function applyConstraints(target: any, schema: any): void; export declare function isStructSchema(schema: any): boolean; export declare function mapSchemaToMapType(ap: any, resolver: RefResolver): string; /** * Common OpenAPI idiom: `{ allOf: [{ $ref: X }], description: "..." }` wraps * a single $ref just to attach sibling keys (typically `description`). This * has the same fields as X itself, so callers should treat it exactly like a * direct $ref to X instead of flattening/duplicating X's fields under a * freshly derived struct name every time the wrapper is encountered. */ export declare function getSingleAllOfRef(schema: any): string | undefined; export declare function getTypeFromSchema(schema: any, resolver: RefResolver): string; export declare function parseSchema(name: string, schema: any, resolver: RefResolver, depth?: number, visitedRefs?: Set, structs?: Record): any[]; export declare function generateStructName(operationId: string, method: string, path: string, suffix: string): string; export declare function getErrorStructName(rawResponse: any, op: any, code: string): string; export declare function extractStructs(spec: any, resolver: RefResolver): Record; //# sourceMappingURL=schema-utils.d.ts.map