import { Collection, Config, Singleton } from '../config'; import { ComponentSchema, ObjectField, ValueForReading } from '../DocumentEditor/component-blocks/api'; type CollectionReader> = { read: (id: string) => Promise> | null>; list: () => Promise; }; type SingletonReader> = { read: () => Promise> | null>; }; export declare function createReader; }, Singletons extends { [key: string]: Singleton; }>(repoPath: string, config: Config): { collections: { [Key in keyof Collections]: CollectionReader; }; singletons: { [Key in keyof Singletons]: SingletonReader; }; }; export {};