import { BaseDuckDBType } from './BaseDuckDBType'; import { DuckDBLogicalType } from '../DuckDBLogicalType'; import { DuckDBTypeId } from '../DuckDBTypeId'; import { Json } from '../Json'; export declare class DuckDBEnumType extends BaseDuckDBType { readonly values: readonly string[]; readonly valueIndexes: Readonly>; readonly internalTypeId: DuckDBTypeId; constructor(values: readonly string[], internalTypeId: DuckDBTypeId, alias?: string); /** * The index of the given value in this enum. * * Throws if the value is not a member: storing an unknown value would * otherwise write index 0, silently substituting the enum's first member. */ indexForValue(value: string): number; /** * Like toString, but bounded: an enum can have millions of members, and all of * them in an error message would bury the part that matters. */ private toStringForError; toString(): string; toLogicalType(): DuckDBLogicalType; toJson(): Json; } export declare function ENUM8(values: readonly string[], alias?: string): DuckDBEnumType; export declare function ENUM16(values: readonly string[], alias?: string): DuckDBEnumType; export declare function ENUM32(values: readonly string[], alias?: string): DuckDBEnumType; export declare function ENUM(values: readonly string[], alias?: string): DuckDBEnumType;