/** * [WHO]: DirectionProvider — lightweight direction context for LTR/RTL UI. * [FROM]: React. * [TO]: sparkdesign package consumers; output of CLI `add direction` when registered. * [HERE]: registry/basic/direction.tsx — Spark Design source; provides dir inheritance without extra runtime dependencies. * * [PROTOCOL]: * 1. Keep dir values limited to `ltr` and `rtl`. * 2. Prefer native `dir` attributes for DOM interoperability. * 3. Follow design tokens and explicit type exports. */ import * as React from 'react'; export type Direction = 'ltr' | 'rtl'; export interface DirectionProviderProps extends React.HTMLAttributes { dir?: Direction; } declare function DirectionProvider({ dir, children, ...props }: DirectionProviderProps): import("react/jsx-runtime").JSX.Element; declare function useDirection(): Direction; export { DirectionProvider, useDirection };