export interface EntityOptions { /** Database table name. Defaults to lowercase class name + 's'. */ table?: string; /** Primary key column name. Defaults to 'id'. */ primaryKey?: string; /** * Registered DataSource name. When set, the entity operates on * DB.source(sourceName); otherwise it operates directly on DB. */ source?: string | null; } /** * Marks a class as a database entity. * * Reads the metadata accumulated by the property decorators (@Column, @HasMany, …) * and registers it in the EntityRepository's internal store via registerEntityMeta(). * * The entity class itself is never modified — no static properties are added. */ export declare function Entity(options?: EntityOptions): (EntityClass: T) => T;