import { FileRef, SourceReader, SourceWriter, SourceRemover } from "./types"; export declare function toFileId(filePath: string): string; export declare class DefaultFileRef implements FileRef { readonly id: string; readonly path: string; constructor(filePath: string, root?: string); } export declare class FileSourceReader implements SourceReader { read(file: FileRef): Promise; } export declare class FileSourceWriter implements SourceWriter { write(file: FileRef, source: string): Promise; } export declare class RimrafAdapter implements SourceRemover { delete(file: FileRef): Promise; } export declare class NoopWriter implements SourceWriter { write(file: FileRef, source: string): Promise; } export declare class NoopRemover implements SourceRemover { delete(file: FileRef): Promise; } export declare function exists(r: string, fid: string): boolean; export declare function readFile(r: string, fid: string): Promise; export declare function readFileAsJson(r: string, fid: string): Promise;