import type { ModelSchema } from './types/orm-types.js'; export interface SchemaRelationshipInfo { type: 'belongsTo' | 'hasMany'; modelName: string | null; } /** * Detect relationship type and target model from a model property function. * Returns null if the property is not a relationship. */ export declare function getRelationshipInfo(property: unknown): SchemaRelationshipInfo | null; /** * Sanitize a model/table name for use in SQL identifiers. * Replaces hyphens and slashes with underscores. */ export declare function sanitizeTableName(name: string): string; /** * Sort model schemas in dependency order (belongsTo targets before dependents). * Uses depth-first traversal to ensure referenced tables are created first. */ export declare function getTopologicalOrder(schemas: Record): string[];