/** * PostgreSQL ENUM type builder */ export interface EnumTypeDefinition { name: string; values: string[]; } /** * Registry to store all enum types defined in the schema */ export declare class EnumTypeRegistry { private static enums; static register(name: string, values: string[]): void; static get(name: string): EnumTypeDefinition | undefined; static getAll(): Map; static clear(): void; static has(name: string): boolean; } /** * Create a PostgreSQL ENUM type * * @example * const statusEnum = pgEnum('order_status', ['pending', 'processing', 'completed', 'cancelled']); * entity.property(e => e.status).hasType(enumColumn('status', statusEnum)); */ export declare function pgEnum(name: string, values: T): EnumTypeDefinition; /** * Type helper to extract enum values as a union type */ export type EnumValues = T['values'][number]; //# sourceMappingURL=enum-builder.d.ts.map