import { NullableElement } from './selectors'; export declare function focusFirstVisibleEmoji(parent: NullableElement, shouldFocus?: () => boolean): void; export declare function categoryGeometry(category: HTMLElement): { content: HTMLElement | null; count: number; columns: number; }; export type MoveOptions = { shouldFocus?: () => boolean; /** * Called when the move leaves the grid: no cell in that direction, or * Left/Right at the first/last column. A sideways exit that returns * false (nothing beside the grid) keeps wrapping through the rows. */ exit?: () => boolean | void; /** Receives the destination cell; focuses it by default. */ moveTo?: (emoji: HTMLElement) => void; /** Source cell while a virtualized destination is being materialized. */ origin?: HTMLElement; }; /** Move to the first filtered result, including a cell outside the viewport. */ export declare function focusFirstEmoji(body: NullableElement, options: MoveOptions): boolean; export declare function focusAdjacentEmoji(element: NullableElement, direction: number, row: boolean, options: MoveOptions): void; /** Cells fully in view: inside the scroll container, below the sticky label. */ export declare function emojisInView(body: NullableElement): HTMLElement[]; export declare function focusLogicalEmoji(category: HTMLElement, index: number, { shouldFocus, moveTo, origin }: MoveOptions): void;