import { PackageJson } from 'type-fest'; import { DeviceConfigTemplateJSON } from 'types/index.js'; import { ConfigFile } from './project/project-file-system.js'; export declare function getConfigFilePath({ configPathJson, configPathTs, configPathJs }: ConfigFile, rootFolder: string): string; export declare function getToolPath(): string; export declare function getToolPackageJson(): PackageJson; export declare function getProjectPath(name?: string): string; export declare function loadTextFile(path: string, dflt?: string | null): string | null; export declare function loadJsonFile(path: string, dflt?: T): any; export declare function loadYamlFile(path: string, dflt?: T | null): any; export declare function saveYamlFile(path: string, data?: T | null): void; export declare function saveJsonFile(path: string, data?: T | null): void; export declare function loadGitignore(dir: string): string[]; /** * List subdirectories * @param {string} path * @returns {string[]} list of subdirectories */ export declare const listSubdirectories: (path: string) => string[]; export declare const listFilesByExt: (path: string, ext: string) => string[]; export declare const getTempPath: (fileName: string) => string; /** * Pack directory contents into a .tgz file * @param {string} path path to source directory * @param {string} tgz path to destination .tgz file * @param {string[]?} ignore array of globs to ignore * @returns */ export declare function packDirectory(path: string, tgz: string, ignore?: string[]): Promise; /** * Save a config manifest file to a JSON file inside the local config directory. * * @param {DeviceConfigTemplateJSON} manifestData - Object containing the Azure IoT Edge config manifest. * @param {string} manifestName - The name of the manifest. * @returns {Promise} */ export declare function saveManifestConfig(manifestData: DeviceConfigTemplateJSON, manifestName: string): Promise;