import { SetView } from '@sequelize/utils'; import type { AbstractDialect } from './abstract-dialect/dialect.js'; import type { Model, ModelStatic } from './model'; import type { SequelizeTypeScript } from './sequelize-typescript.js'; export declare class ModelSetView extends SetView { #private; constructor(sequelize: SequelizeTypeScript, set: Set); get(modelName: string): ModelStatic | undefined; getOrThrow(modelName: string): ModelStatic; /** * Returns the list of registered model names. */ getNames(): Iterable; hasByName(modelName: string): boolean; /** * Returns an array that lists every model, sorted in order * of foreign key references: The first model is a model that is depended upon, * the last model is a model that is not depended upon. * * If there is a cyclic dependency, this returns null. */ getModelsTopoSortedByForeignKey(): ModelStatic[] | null; /** * Iterate over Models in an order suitable for e.g. creating tables. * Will take foreign key constraints into account so that dependencies are visited before dependents. * * @param iterator method to execute on each model * @param options * @param options.reverse * @private * * @deprecated */ forEachModel(iterator: (model: ModelStatic) => void, options?: { reverse?: boolean; }): void; } //# sourceMappingURL=model-set-view.d.ts.map