import type { IFieldDefinition } from './db-types.js'; export interface MongooseFieldDef { type?: string | string[]; required?: boolean; unique?: boolean; default?: unknown; maxlength?: number; enum?: string[]; primaryKey?: boolean; autoGenerate?: boolean; float?: boolean; ref?: string; index?: boolean; } export interface SchemaEntry { db: string; tables: Record>; } export declare function getSchemaPath(projectDir: string): string; export declare function loadSchemaFile(projectDir: string): SchemaEntry[]; export declare function parseField(name: string, def: MongooseFieldDef): IFieldDefinition; export interface ParsedTable { name: string; fields: IFieldDefinition[]; indexFields: Array<{ fieldName: string; unique: boolean; }>; } export declare function parseTableDef(tableName: string, fieldDefs: Record): ParsedTable;