/** * @copyright Sister Software * @license MIT * @author Teffen Ellis, et al. */ import type { ParsedPath } from "./parse.js"; export type FormatParsedPath> = T["dir"] extends "" ? T["root"] extends "/" ? `/${T["base"]}` : T["base"] : T["dir"] extends "/" ? `/${T["base"]}` : `${T["dir"]}/${T["base"]}`; /** * Format a parsed POSIX path. * * @param parsedPath The parsed path object to format. * * @returns The formatted path. * @throws {TypeError} If input is not a {@linkcode ParsedPath} */ export declare function format>(parsedPath: T): FormatParsedPath; export default format; //# sourceMappingURL=format.d.ts.map