/** * Generic TypeScript declaration (.d.ts) generation utilities. * * Provides functions for writing resource classes, property classes, * constructors, and enum types. Lexicon-specific generators use these * building blocks with their own orchestration logic. */ export interface DtsProperty { name: string; type: string; required: boolean; description?: string; } export interface DtsAttribute { name: string; type: string; } export interface DtsPropertyType { name: string; properties: DtsProperty[]; } export interface DtsResource { typeName: string; properties: DtsProperty[]; attributes: DtsAttribute[]; } /** * Write a resource class declaration with constructor and readonly attributes. */ export declare function writeResourceClass(lines: string[], tsName: string, properties: DtsProperty[], attributes: DtsAttribute[], remap?: Map, resourceAttributesType?: string): void; /** * Write a property class declaration with constructor. */ export declare function writePropertyClass(lines: string[], tsName: string, properties: DtsProperty[], remap?: Map): void; /** * Write a constructor with typed props parameter. */ export declare function writeConstructor(lines: string[], props: DtsProperty[], remap: Map | undefined, resourceAttributesType?: string): void; /** * Write an enum union type. */ export declare function writeEnumType(lines: string[], tsName: string, values: string[]): void; /** * Resolve a type string through the remap table, handling arrays and * common type normalization. */ export declare function resolveConstructorType(tsType: string, remap: Map | undefined): string; //# sourceMappingURL=generate-typescript.d.ts.map