import { DocFileMeta } from "./DocFileMeta"; import { FileRef } from "./FileRef"; import { Backend } from "./Backend"; export declare type NetworkLayer = 'local' | 'web'; export declare class NetworkLayers { static LOCAL: Set; static LOCAL_AND_WEB: Set; static WEB: Set; } export interface ReadableBinaryDatastore { containsFile(backend: Backend, ref: FileRef): Promise; getFile(backend: Backend, ref: FileRef, opts?: GetFileOpts): DocFileMeta; } export interface GetFileOpts { readonly networkLayer?: NetworkLayer; } export declare type ReadableBinaryDatastoreProvider = () => ReadableBinaryDatastore;