import { DOMApi, ComponentLike } from './types'; /** * Synchronously destroy a component or array of components. * Used for immediate cleanup when async destruction is not needed. */ export declare function destroyElementSync(component: ComponentLike | Node | Array, skipDom: boolean | undefined, api: DOMApi): void; /** * Unregister a component from its parent's child list. * Used when relocating components without destroying them. */ export declare function unregisterFromParent(component: ComponentLike | Node | Array): void; /** * Asynchronously destroy a component or array of components. * Waits for all async destructors to complete. */ export declare function destroyElement(component: ComponentLike | Node | Array, skipDom?: boolean, api?: DOMApi): Promise; /** * Run destructors for a component and its children, collecting async promises. */ export declare function runDestructors(target: ComponentLike, promises?: Array>, skipDom?: boolean, _api?: DOMApi): Array>;