import { DbEntity, EntityConstructor } from './entity-base'; import { EntityConfigBuilder } from './entity-builder'; import { TableBuilder } from '../schema/table-builder'; /** * Model builder for configuring entities */ export declare class DbModelConfig { private _searchNormalizeRequired; /** * Configure an entity */ entity(entityClass: EntityConstructor, configure: (builder: EntityConfigBuilder) => void): void; /** * Opt into the `search_normalize` support objects (the `unaccent` extension * and the `public.search_normalize(text)` function) even when no * `ixNormalized` index is declared. * * Call this in `setupModel` when you use the normalized query helpers * (`normalizedEq` / `normalizedLike` / `normalizedStartsWith` / `searchNormalize`) * without a dedicated index, so the function exists in the database. When an * `ixNormalized` index exists, the support objects are created automatically * and this call is not required. */ useSearchNormalize(): this; /** * Whether `useSearchNormalize()` was called. * @internal */ isSearchNormalizeRequired(): boolean; /** * Build all table definitions from entity metadata * @internal */ buildTables(): Map>; } //# sourceMappingURL=model-config.d.ts.map