export interface LayerNode { tag: string; semanticId: string; children: LayerNode[]; repeator?: string | null; } /** * Parse WDL layers (string, nested tree, or 5-element tuples) into a nested tree. * Operators: `>` child, `+` sibling, `<` / `<*N` / `<@N` de-indent. */ export declare function parseLayers(layers: string | any[]): LayerNode[]; export declare function isComponentRef(tag: string | undefined | null): boolean; /** * Find a node by semanticId (depth-first) */ export declare function findNode(nodes: LayerNode[], semanticId: string): { node: LayerNode; parent: LayerNode | null; index: number; } | null; /** * Serialize a nested tree to a WDL layers string. * Operators are derived from depth deltas so wrap/append round-trip with `<` / `<*N`. */ export declare function serializeLayers(nodes: LayerNode[]): string; /** * Create a node from a short layer string (e.g. "div.card" or "h2.title") */ export declare function createNode(layer: string): LayerNode;