/** * Design File Finder * * Locates committed /design.json files across the workspace and * resolves user selections (names, substrings, numbers, 'all') against them. * Core logic of the wp-design-visualize CLI, kept here so it is unit-testable. */ /** * One discovered design.json file. */ export declare class DesignFileRef { /** Project name from the design.json contents */ readonly project: string; /** Workspace-relative posix path to the design.json */ readonly relPath: string; /** Absolute path to the design.json */ readonly absPath: string; constructor( /** Project name from the design.json contents */ project: string, /** Workspace-relative posix path to the design.json */ relPath: string, /** Absolute path to the design.json */ absPath: string); } /** * Recursively find every design.json in the workspace (skipping build/vcs * dirs), sorted by project name. */ export declare function findDesignFiles(workspaceRoot: string): DesignFileRef[]; /** * Resolve user selections against the discovered files. * Accepts: 'all', 1-based numbers, exact project names, or substrings of the * project name / path. Throws on a selection that matches nothing. */ export declare function resolveSelections(selections: string[], files: DesignFileRef[]): DesignFileRef[];