/**
* Shared helpers for native HTML component sync.
*/
import type { Node } from '../../Node';
import type { FormModifiers } from './types';
export declare function positionStyle(node: Node, width: number, height: number): string;
export declare function getState(node: Node): Record;
export declare function modifierClasses(base: string, mods: FormModifiers, extra?: string): string;
export declare function fieldWidth(state: Record, fallback: number): number | string;
export declare function syncFieldError(wrap: HTMLElement, error?: string): void;
export declare function escHtml(s: string): string;
export declare function formatTableCell(cell: string): string;
export declare function sortTableRows(rows: string[][], col: number, dir: 'asc' | 'desc'): string[][];
export declare function filterTableRows(rows: string[][], query: string): string[][];
export declare function absPosition(node: Node, width?: number | string, height?: number | string): string;
export declare function bindDelegated(el: HTMLElement, handler: (e: Event) => void): void;
export declare const dialogTrapHandlers: WeakMap void>;
export declare const menuOutsideHandlers: WeakMap void>;
export declare const tooltipDelayTimers: Map;
export declare function trapDialogFocus(host: HTMLElement): void;
export declare function releaseDialogFocus(host: HTMLElement): void;
export declare function bindMenuOutsideClose(el: HTMLElement, node: Node): void;
export declare function isDangerMenuItem(item: string, variants: string[] | undefined, index: number): boolean;
export declare function scheduleTooltipShow(node: Node, delayMs: number, show: () => void): void;
export declare function cancelTooltipShow(nodeId: string): void;