import type { IDirectoryContents, IFileSystem } from '@file-services/types'; import type { DirectoryContentMapper, IEnrichedTemplateContext, ITemplateContext } from './types.js'; export declare function enrichContext(context: ITemplateContext): IEnrichedTemplateContext; export declare function readDirectoryContentsSync(fs: IFileSystem, path: string): IDirectoryContents; export declare function mapDirectory(sourceDir: IDirectoryContents, mapper: DirectoryContentMapper): IDirectoryContents; export declare function writeDirectoryContentsSync(fs: IFileSystem, directoryContents: IDirectoryContents, path: string): void; /** * returns the path to features directory in the project * @param fs IFileSystem * @param path A general path in a project * @param featuresDir The features directory name (optional, if not used, returns `path` normalized) * * @example * ``` * pathToFeaturesDirectory(fs, '/proj', 'packages'); * // => '/proj/packages' * * pathToFeaturesDirectory(fs, '/proj/packages/some-feature', 'packages'); * // => '/proj/packages' * * pathToFeaturesDirectory(fs, '/proj'); * // => '/proj' * ``` */ export declare const pathToFeaturesDirectory: (fs: IFileSystem, path: string, featuresDir?: string) => string; export declare const createFeatureMapper: (templateCompiler: (template: string) => string) => (name: string, content?: string) => { name: string; content: string | undefined; }; //# sourceMappingURL=utils.d.ts.map