export type PathErrorInfo = | { kind: "invalid_cwd" } | { kind: "escapes_root"; input: string } | { kind: "not_absolute"; path: string };export class PathError extends Error { declare readonly kind: PathErrorInfo["kind"]; declare readonly input?: string; declare readonly path?: string; constructor(info: PathErrorInfo) { super(info.kind); Object.assign(this, info); }}/** Throws PathError (invalid_cwd, escapes_root). */export function resolvePath(cwd: string, input: string): string { // TODO}/** Throws PathError (not_absolute, escapes_root). */export function relativeTo(from: string, to: string): string { // TODO}