import fs from "fs-extra"; export declare class SecureSourceFs { private documentationRoot; private projectRoot; constructor(documentationRoot: string, projectRoot: string); private sourcePathError; private realSourceRoot; private readSafeSourceFile; readMdxSourceFile(filePath: string): Promise<{ content: string; stat: fs.Stats; }>; readProjectSourceFile(sourcePath: string, label: string): Promise<{ data: Buffer; stat: fs.Stats; }>; readPublicSourceFile(sourcePath: string): Promise<{ data: Buffer; stat: fs.Stats; }>; private assertPinnedDocumentationRoot; private pinDocumentationRoot; private removeCreatedStarterFile; private writeStarterFile; writeStarterFilesIfEmpty(files: Iterable | AsyncIterable): Promise; pathState(filePath: string, hashContents?: boolean): Promise; treeState(root: string, includeFile: (relativePath: string) => boolean, hashContents?: boolean): Promise; scanPublicFiles(): Promise; getAllMdxFiles(): Promise; findPublicAsset(relativePath: string): Promise; }