import type { ReactSetState } from "../use-safe-state/index.js"; import type { ElementTarget } from "../use-target-element/index.js"; export type UseTextDirectionValue = 'ltr' | 'rtl' | 'auto' | ''; export interface UseTextDirectionOptions { /** * The target element to set the text direction attribute. * * @defaultValue 'html' */ target?: ElementTarget; /** * The initial text direction value. * * @defaultValue 'ltr' */ initialValue?: UseTextDirectionValue; } export type UseTextDirectionReturns = readonly [ /** * The current text direction value. */ dir: UseTextDirectionValue, /** * Sets the text direction value. */ setDir: ReactSetState ]; /** * A React Hook that helps to get/set the text direction of an element. */ export declare function useTextDirection(options?: UseTextDirectionOptions): UseTextDirectionReturns;