import { TFileSystem } from './util/workspace-lib.js'; export interface HaibunWorkspace { /** Base path - parent of features/ folder */ base: string; /** Path to config.json if it exists */ configPath: string | null; /** Path to backgrounds/ folder if it exists */ backgroundsPath: string | null; } /** * Find the haibun workspace root from a feature file path. * Walks up from the file until finding a 'features/' parent directory. * Returns the base path (parent of features/), config path, and backgrounds path. * * @param featurePath - Absolute path to a .feature file * @param fs - File system interface (for testing) * @returns Workspace info or null if no features/ parent found */ export declare function findHaibunWorkspace(featurePath: string, fs?: TFileSystem): HaibunWorkspace | null; /** * Recursively find all .feature files in a directory */ export declare function findFeatureFiles(dir: string, fs?: TFileSystem): Promise; /** * Count features in the workspace (base/features) */ export declare function countFeatures(base: string, fs?: TFileSystem): Promise; /** * Load all background files from a backgrounds directory */ export declare function loadBackgroundsFromPath(backgroundsPath: string, fs?: TFileSystem): Promise>; //# sourceMappingURL=workspace-discovery.d.ts.map