/**
 * rtl.ts — Right-to-left (RTL) UI support for editors.
 *
 * Provides RTL direction context, CSS logical properties,
 * and layout utilities for RTL languages (Arabic, Hebrew, etc.).
 */
import React from "react";
export type Direction = "ltr" | "rtl";
export interface RTLConfig {
    direction: Direction;
    /** Mirror horizontal tool positions. */
    mirrorToolbar: boolean;
    /** Mirror panel positions (left↔right). */
    mirrorPanels: boolean;
}
/** Provider for RTL configuration. Wraps editors to enable RTL support. */
export declare const NiceRTLProvider: React.FC<{
    direction?: Direction;
    mirrorToolbar?: boolean;
    mirrorPanels?: boolean;
    children: React.ReactNode;
}>;
/** Hook to access RTL configuration. */
export declare function useRTL(): RTLConfig;
/** Hook that returns true if the current direction is RTL. */
export declare function useIsRTL(): boolean;
/** Convert physical CSS properties to logical equivalents for RTL awareness. */
export declare function logicalStyles(direction: Direction, styles: React.CSSProperties): React.CSSProperties;
/** Get panel flex direction based on RTL. */
export declare function rtlFlexDirection(direction: Direction): "row" | "row-reverse";
/** Detect direction from document or browser locale. */
export declare function detectDirection(): Direction;
