@ark-ui/vue
Version:
A collection of unstyled, accessible UI components for Vue, utilizing state machines for seamless interaction.
20 lines (19 loc) • 782 B
TypeScript
import { ComputedRef } from 'vue';
export type RootNode = ShadowRoot | Document | Node;
export interface UseEnvironmentContext {
/**
* The root node of the application.
* This is used to determine the window and document objects.
*/
getRootNode(): RootNode;
/**
* The document context for the root node.
*/
getDocument(): Document;
/**
* The window context for the root node.
*/
getWindow(): Window & typeof globalThis;
}
export declare const EnvironmentContextProvider: (opts: ComputedRef<UseEnvironmentContext>) => void, useEnvironmentContext: (fallback?: ComputedRef<UseEnvironmentContext> | undefined) => ComputedRef<UseEnvironmentContext>;
export declare const DEFAULT_ENVIRONMENT: ComputedRef<UseEnvironmentContext>;