import type { Direction } from './types.js'; export declare function nearest(current: HTMLElement, candidates: readonly HTMLElement[], direction: Direction, measure?: (element: HTMLElement) => DOMRect): HTMLElement | null;