ui-ingredients
Version:
Headless component library for Svelte powered by zag
8 lines (7 loc) • 370 B
TypeScript
import type { Accessor } from '../types.js';
export interface Environment {
getRootNode(): ShadowRoot | Document | Node;
getDocument(): Document;
getWindow(): Window & typeof globalThis;
}
export declare const getEnvironmentContext: () => Accessor<Environment> | null, setEnvironmentContext: (context: Accessor<Environment>) => Accessor<Environment> | null;