import type { ComponentData } from '@dosgato/templating'; export declare function collectTemplates(component: ComponentData): Set; export declare function collectComponents(component: ComponentData): ComponentData[]; /** * Similar to collectComponents, but it's possible for some components in the page * data to be unreachable due to changes. This function reads each components' * area list and only recurses to components in those areas. */ export declare function collectReachableComponents(component: ComponentData): ComponentData[]; /** * Removes areas from components that do not exist in its current areas configuration in the * template registry. Mutating - you probably want to clone your component before running this. */ export declare function removeUnreachableComponents(component: T): T;