/** * Reading direction, for the components that have to know it. * * A menu opens toward the end of the line, a slider fills toward it, a carousel * advances toward it. None of that can be read off CSS, so it travels as * context — and `dir` on an ancestor element is what the DOM already uses, so a * provider with nothing above it answers from there rather than guessing. */ import { type ReactNode } from 'react'; export type Direction = 'ltr' | 'rtl'; export declare function DirectionProvider({ dir, children, }: { dir: Direction; children?: ReactNode; }): import("react").JSX.Element; /** * The direction in force. Falls back to the document's own `dir`, so a page that * sets it on `` — which is where it belongs — needs no provider at all. */ export declare function useDirection(local?: Direction): Direction; //# sourceMappingURL=direction.d.ts.map