export declare class Path { static split(path: string): [segments: string[], type: "absolute" | "relative"]; static from(path: Path | string | string[], type?: "absolute" | "relative"): Path; static equal(p1: Path | string, p2: Path | string): boolean; private _segments; private _type; constructor(path: string); private concatSegments; /** * Joins two paths together and returns a new Path object with the result. */ join(path: Path | string): Path; slice(endIdx: number): Path; /** * Removes the last segment from the path and returns a new Path object with the result. */ dir(): Path; /** * Normalizes the path by removing "." and ".." segments. */ normalize(): Path; toString(): string; segments(): string[]; isAbsolute(): boolean; isRelative(): boolean; equals(other: Path | string): boolean; isInside(parent: Path | string): boolean; /** * Returns the extension of the file or undefined if there is none. */ ext(): string | undefined; /** * Returns the basename of the file. Can be passed a `false` argument to exclude the extension. */ basename(ext?: boolean): string; relative(from: string | Path, startWithDot?: boolean): Path; } //# sourceMappingURL=path.d.ts.map