import type { ServiceOptions } from '../types'; import type { Logger } from '@sap-ux/logger'; /** * This interface represents the target the data gets written to/read from. It abstracts implementation details * related to the medium used (locking, buffering, etc) */ export interface DataAccess { read(options: { entityName: string; id: string; }): Promise; write(options: { entityName: string; id: string; entity: Entity; }): Promise; del(options: { entityName: string; id: string; }): Promise; /** Return an array of entities */ getAll(options: { entityName: string; includeSensitiveData?: boolean; }): Promise; /** Return entities as an object keyed by ID */ readAll(options: { entityName: string; includeSensitiveData?: boolean; }): Promise<{ [key: string]: Entity; }>; /** Updates chosen entity */ partialUpdate(options: { entityName: string; id: string; entity: Partial; }): Promise; } export interface DataAccessConstructor { new (logger: Logger, options?: ServiceOptions): DataAccess; } export { getFilesystemWatcherFor } from './filesystem'; //# sourceMappingURL=index.d.ts.map