import * as React from 'react'; export type Direction = 'ltr' | 'rtl'; /** * Tracks the reading direction (`ltr` / `rtl`) and keeps it in sync when the document direction * changes at runtime (e.g. toggling `dir` on ``), so components can read it during render. * * The direction is resolved from the given element's computed direction (which reflects `dir` * inherited from any ancestor), falling back to ``. * * @param target - Optional element or ref to read the direction from. Defaults to `document.documentElement`. * @returns The current direction, `'ltr'` or `'rtl'`. * * @example * ```tsx * const dir = useDirection(); * const isRtl = dir === 'rtl'; * ``` */ export declare function useDirection(target?: HTMLElement | React.RefObject | null): Direction;