import { LifecycleState, LifecycleCallback, LifecycleOwner } from './Lifecycle.js'; import TemplateProcessor from "./TemplateProcessor.js"; /** * Class for managing lifecycle callbacks. */ export declare class LifecycleManager implements LifecycleOwner { private lifecycleCallbacks; private templateProcessor; constructor(templateProcessor: TemplateProcessor); /** * Registers a lifecycle callback for a specific lifecycle state. * @param state The lifecycle state to register the callback for. * @param cbFn The callback function to execute when the lifecycle state is triggered. */ setLifecycleCallback(state: LifecycleState, cbFn: LifecycleCallback): void; /** * Removes a specific lifecycle callback or all callbacks for a lifecycle state. * @param state The lifecycle state to remove the callback from. * @param cbFn The specific callback function to remove. If not provided, all callbacks for the state will be removed. */ removeLifecycleCallback(state: LifecycleState, cbFn?: LifecycleCallback): void; /** * Calls all lifecycle callbacks registered for a specific lifecycle state. * @param state The lifecycle state to trigger callbacks for. */ runCallbacks(state: LifecycleState): Promise; clear(): void; } //# sourceMappingURL=LifecycleManager.d.ts.map