export interface ContextKey extends Symbol { /** * Internal phantom type to preserve 'T' for inference. * Never actually present at runtime. */ readonly __contextType?: T; } export declare function createContextKey(description?: string): ContextKey; export declare function provideContext(host: object, key: ContextKey, value: T): T; export declare function hasProvidedContext(host: object, key: ContextKey): boolean; /** * Consumes a context value from the DOM tree. * * This returns a "Lazy Proxy" that performs the DOM traversal lookup on every access. * This has three major benefits: * 1. It can be used in class field initializers (constructors) even before * the element is connected to the DOM. * 2. It is always type-safe, automatically inferring T from the ContextKey. * 3. It is dynamic — if a higher-level provider changes, the proxy will resolve * to the new value on next access. */ export declare function consumeContext(host: Node, key: ContextKey, fallback?: T): T; //# sourceMappingURL=context.d.ts.map