// Generated by dts-bundle-generator v9.5.1 export type RenderCallback = (...args: Arguments) => string; export type NullaryRenderCallback = () => string; /** Function used to create a rendering root in string format */ export declare function renderRoot(callback: RenderCallback): { (...args: Parameters): ReturnType; native: RenderCallback; }; /** Function used to instantiate a context with a given value */ export interface ContextProvider { (value: Type, callback: NullaryRenderCallback): string; } /** Function used to create a context provider */ export declare function createContext(): ContextProvider; /** Hook used to retrieve the value of a context based on its provider */ export declare function useContext(provider: ContextProvider): Type | undefined; /** * Hook used to retrieve the value of a context based on its provider, * throw an error if the value is `null` or `undefined` */ export declare function useNonNullableContext(provider: ContextProvider): Type; declare const isConnected: unique symbol; declare class RenderRoot extends HTMLElement { [isConnected]: boolean; createdArray: LifeCycleArray | undefined; connectedArray: LifeCycleArray | undefined; disconnectedArray: LifeCycleArray | undefined; constructor(); connectedCallback(): void; disconnectedCallback(): void; adoptedCallback(): void; } export type LifeCycleCallback = (customElement: RenderRoot) => void; export type LifeCycleArray = LifeCycleCallback[]; /** Hook used to bind functions to the customElement lifecycle */ export declare function useLifeCycle(): { created: (callback: LifeCycleCallback) => void; connected: (callback: LifeCycleCallback) => void; disconnected: (callback: LifeCycleCallback) => void; }; declare class Root { static current: Root; contexts: Map, unknown>; createdCallbacks: LifeCycleArray[]; connectedCallbacks: LifeCycleArray[]; disconnectedCallbacks: LifeCycleArray[]; } /** Hook used to retrieve current root instance */ export declare function useRoot(): Root; /** Function used to create a rendering context */ export declare function createRoot(callback: NullaryRenderCallback, root?: Root): HTMLCollection; /** Hook used to create a root that inherits the current context */ export declare function useInnerRoot(): (callback: NullaryRenderCallback) => HTMLCollection; export {};