import type { Model } from '../types'; import type { ForeignKey, Index } from '../schema/types'; import type { Action, SubscriberFn } from '../lifecycles'; export interface Meta extends Model { columnToAttribute: Record; indexes: Index[]; foreignKeys: ForeignKey[]; lifecycles: Partial>; } export declare class Metadata extends Map { get identifiers(): import("..").Identifiers; /** * The attribute-name -> physical-identifier rules used to build this * metadata, for callers that need to predict a name for an attribute that is * not registered (see `attribute-naming.ts`). */ get naming(): { columnName(attributeName: string): string; joinColumnName(attributeName: string): string; joinTableName(tableName: string, attributeName: string): string; }; get(key: string): Meta; add(meta: Meta): this; /** * Validate the DB metadata, throwing an error if a duplicate DB table name is detected */ validate(): void; loadModels(models: Model[]): void; } //# sourceMappingURL=metadata.d.ts.map