import fs from "node:fs"; import { PathLike } from "node:fs"; import Service from "../Service.js"; import Command from "./Command.js"; import FileClass from "../FileClass.js"; import File from "../finder/File.js"; import Cli from "../Cli.js"; interface SymlinkParams { source: string; dest: string; } interface CopyParams { recurse?: boolean; } type FileType = "file" | "directory" | "copy" | "symlink"; interface BuilderObject { name: string; type: FileType; path?: string | PathLike; skeleton?: string | PathLike; params?: SymlinkParams | CopyParams | fs.MakeDirectoryOptions | Record; chmod?: string | number; parse?: boolean; childs?: BuilderObject[]; } declare class Builder extends Service { command: Command | undefined; cli: Cli | undefined | null; response: Record; debug: boolean; interactive: boolean; location: string; private readonly eta; constructor(command: Command); private getCliOptions; run(...args: any[]): Promise; generate(): Promise; setLocation(location: string | FileClass): string; removeInteractivePath(file: string): Promise; buildSkeleton(skeleton: string | FileClass, parse: boolean, data: Record): Promise; createFile(myPath: string, skeleton: string, parse?: boolean, params?: Record): Promise; createDirectory(myPath: fs.PathLike, mode?: fs.MakeDirectoryOptions | fs.Mode | null, force?: boolean): Promise; build(obj: BuilderObject | BuilderObject[], parent?: FileClass | string | File, force?: boolean): Promise; } export default Builder; export type { FileType, SymlinkParams, CopyParams, BuilderObject };