import { ContextTrinity } from "../createTrinity/index.mjs"; import { Plugin } from "../createPlugin/index.mjs"; import { RtlAdapter, RtlAdapterSetupContext } from "./adapters/adapter.mjs"; import { V0RtlAdapter } from "./adapters/v0.mjs"; import "./adapters/index.mjs"; import "../index.mjs"; import { Ref } from "vue"; //#region src/composables/useRtl/index.d.ts interface RtlContext { /** Writable ref — true = RTL, false = LTR */ isRtl: Ref; /** Convenience method to flip direction */ toggle: () => void; /** * Release adapter resources (watch teardown, unhead entry). * Called automatically on `app.unmount` when using the plugin path. * Call manually when using a standalone context (`createRtlContext`). */ dispose: () => void; /** Active RTL adapter. Defaults to `V0RtlAdapter`. */ adapter: RtlAdapter; } interface RtlOptions { /** Initial direction. Defaults to false (LTR). */ default?: boolean; /** Adapter for framework-specific side-effects. */ adapter?: RtlAdapter; /** Target element or selector for dir attribute. Defaults to documentElement. */ target?: string | HTMLElement | null; } interface RtlContextOptions extends RtlOptions { namespace?: string; } interface RtlPluginOptions extends RtlContextOptions { persist?: boolean; } /** * Creates a new RTL direction instance. * * @param options The options for the RTL instance. * @returns A new RTL context with reactive direction state. * * @see https://0.vuetifyjs.com/composables/plugins/use-rtl */ declare function createRtl(options?: RtlOptions): RtlContext; declare function createRtlFallback(): RtlContext; declare const createRtlContext: <_E extends RtlContext = RtlContext>(_options?: RtlPluginOptions | undefined) => ContextTrinity<_E>, createRtlPlugin: (_options?: (RtlPluginOptions & Pick<{ namespace?: string; persist?: boolean; devtools?: boolean; }, "devtools">) | undefined) => Plugin, useRtl: <_E extends RtlContext = RtlContext>(namespace?: string) => _E; //#endregion export { RtlAdapter, type RtlAdapterSetupContext, RtlContext, RtlContextOptions, RtlOptions, RtlPluginOptions, V0RtlAdapter, createRtl, createRtlContext, createRtlFallback, createRtlPlugin, useRtl };