import { t as NapiPluginContext } from "../plugin-C-wxSe3M.cjs"; import "../types/index.cjs"; //#region src/helpers/format-path.d.ts /** * Format the given path by replacing tokens and making it relative to the project root. * * @remarks * This function is used to format paths in the plugin's configuration, such as the path to the crate or the output directory. It replaces tokens in the path (e.g. `{crate}`) with their corresponding values from the plugin context, and then makes the path relative to the project root. * * @param context - The plugin context, which contains the configuration and other information about the plugin's execution environment. * @param path - The path to format or undefined, which may contain tokens to be replaced. This can be a path to a file or directory, and can include tokens such as `{crate}` that will be replaced with their corresponding values from the plugin context. * @returns The formatted path, which has had tokens replaced and is relative to the project root. If the input path is undefined, this function will return undefined. */ declare function formatPath(context: NapiPluginContext, path?: string, appendRoot?: boolean): string | undefined; //#endregion export { formatPath }; //# sourceMappingURL=format-path.d.cts.map