import { Vector } from '../vector.js'; import { IntBuilder } from './int.js'; import { Dictionary, DataType } from '../type.js'; import { Builder, BuilderOptions } from '../builder.js'; declare type DictionaryHashFunction = (x: any) => string | number; export interface DictionaryBuilderOptions extends BuilderOptions { dictionaryHashFunction?: DictionaryHashFunction; } /** @ignore */ export declare class DictionaryBuilder extends Builder { protected _dictionaryOffset: number; protected _dictionary?: Vector; protected _keysToIndices: { [key: string]: number; }; readonly indices: IntBuilder; readonly dictionary: Builder; constructor({ 'type': type, 'nullValues': nulls, 'dictionaryHashFunction': hashFn }: DictionaryBuilderOptions); get values(): T["indices"]["TArray"] | null; get nullCount(): number; get nullBitmap(): Uint8Array | null; get byteLength(): number; get reservedLength(): number; get reservedByteLength(): number; isValid(value: T['TValue'] | TNull): boolean; setValid(index: number, valid: boolean): boolean; setValue(index: number, value: T['TValue']): void; flush(): import("../data.js").Data; finish(): this; clear(): this; valueToKey(val: any): string | number; } export {};