import type { EmojiData } from '../types/exposedTypes'; import type { EmojiInfo } from './types'; export interface PreparedCore { /** Stable dataset order of canonical base records. */ readonly records: readonly EmojiInfo[]; /** Base unified -> record plus variation unified -> base record. */ readonly byUnified: ReadonlyMap; /** * Single-character bucket: char -> base records whose joined lowercase * names include it, in dataset order. Preserves v4's useful O(1) * first-keystroke narrowing on top of the shared immutable core, so * cold single-char queries never pay a full scan. */ readonly byChar: ReadonlyMap; /** Per-core query memo: normalized query -> matching records. */ readonly queryMemo: Map; } export declare function __getPrepareCount(): number; export declare function __resetPrepareCount(): void; export declare function __clearCoreCacheForTest(): void; export declare function normalizeUnified(input: string): string; /** * Datasets disagree on where U+FE0F (emoji presentation) appears in an ID: * `2764` and `2764-fe0f` are the same heart. IDs are also indexed under * this form, so either spelling finds the dataset's own record. */ export declare function withoutFe0f(unified: string): string; export declare function normalizeQuery(input: string): string; export declare function getPreparedCore(emojiData?: EmojiData): PreparedCore;