export declare function isPathInside(parent: string, candidate: string): boolean; export declare function resolveWithin(root: string, ...segments: string[]): string; /** Revalidates the claimed output root containing a previously resolved path. */ export declare function assertClaimedOutputPath(filePath: string): void; /** * Resolves a generated destination and rejects any existing symlink component. * This is synchronous so callers can validate immediately before an fs call. */ export declare function resolveOutputPath(root: string, ...segments: string[]): string; export declare function readOutputFileIfPresent(root: string, ...segments: string[]): Promise; /** * Claims an empty output directory, recognizes directories generated by older * Doccupine versions, and refuses to overwrite arbitrary existing projects. */ export declare function claimOutputDirectory(outputDir: string): Promise;