import {FieldResource, Document} from 'idai-components-2'; import {IdaiFieldFindResult} from '../datastore/cached/cached-read-datastore'; import {Category} from '../configuration/model/category'; import {Query} from '../datastore/model/query'; export type Count = number; // -1 signals that there is not usable count export type CategoryCount = [Category, Count]; export type Find = (query: Query) => Promise>; export type GetIdentifierForId = (resourceId: string) => Promise; export type PerformExport = (category: Category, relations: string[]) => (resources: Array) => Promise;