import type { UmbContextToken } from '../token/index.js'; import type { UmbContextMinimal } from '../types.js'; import type { UmbControllerHostElement } from '../../controller-api/index.js'; declare const UmbContextProviderElement_base: import("../../extension-api/index.js").HTMLElementConstructor & { new (): HTMLElement; prototype: HTMLElement; }; /** * Provides a value to the context down the DOM tree. * @remarks This element is a wrapper around the `provideContext` function. * @slot - The context will be available to all descendants given in the default slot. * @throws {Error} If the key property is not set. * @throws {Error} If the value property is not set. */ export declare class UmbContextProviderElement extends UmbContextProviderElement_base { /** * The value to provide to the context. * @optional */ create?: (host: UmbControllerHostElement) => UmbContextMinimal; /** * The value to provide to the context. * @required */ value?: UmbContextMinimal; /** * The key to provide to the context. * @required */ key: string | UmbContextToken; static get observedAttributes(): string[]; attributeChangedCallback(name: string, _oldValue: unknown, newValue: unknown): void; constructor(); connectedCallback(): void; } declare global { interface HTMLElementTagNameMap { 'umb-context-provider': UmbContextProviderElement; } } export {};