/** * Table Sorter * Handles table dependency sorting and ordering */ import type { ITableDefinition } from '../../../types'; export declare class TableSorter { /** * Sort tables alphabetically by name */ sortTablesAlphabetically(tables: ITableDefinition[]): ITableDefinition[]; /** * Sort tables by dependencies (parent tables before child tables) * Uses topological sort to handle circular dependencies */ sortTablesByDependencies(tables: ITableDefinition[]): ITableDefinition[]; /** * Extract all sequences from tables, deduplicated and sorted */ extractAllSequences(tables: ITableDefinition[]): import("../../../types").ISequenceDefinition[]; /** * Extract self-referencing constraints from tables * Only extracts FOREIGN KEY constraints that reference the same table */ extractSelfReferencingConstraints(tables: ITableDefinition[]): { constraint: import("../../../types").IConstraintDefinition; schema: string; tableName: string; }[]; } //# sourceMappingURL=tableSorter.d.ts.map