import { Model, ModelAttributes, ModelCtor, ModelOptions, Options, Sequelize as OriginSequelize } from 'sequelize'; import { ConsoleApplication } from 'qoq'; import { QueryInterface } from '../types/override/QueryInterface'; export interface SequelizeOptions extends Options { modelsDir?: string; migrationsDir?: string; seedersDir?: string; migrationStorageTableName?: string; } export declare class Sequelize extends OriginSequelize { protected readonly modelsPath: string; protected readonly migrationsPath: string; protected readonly seedersPath: string; private isReady; constructor(options?: SequelizeOptions); ready(): Promise; getModelsPath(): string; /** * @deprecated * Use defineModel instead. * * ```javascript * import { defineModel, column } from 'qoq-sequelize'; * * export const User = defineModel({ * attributes: { * id: column.int.primaryKey(), * name: column.varChar.notNull().comment('User Name'), * }, * }); * ``` */ define(modelName: string, attributes: ModelAttributes, options?: ModelOptions): ModelCtor; /** @ts-expect-error */ getQueryInterface(): QueryInterface; mountCommands(app: ConsoleApplication): Promise; protected parseModels(modelsPath: string): Promise; protected updateQueryInterface(): void; }