import type Criteria from './Criteria'; import type { ApiContext } from './_internals/EntityCollection'; import type EntityCollection from './_internals/EntityCollection'; import type { Entity } from './_internals/Entity'; type Entities = EntitySchema.Entities; declare const _default: (entityName: EntityName) => { search: (criteria: Criteria, context?: ApiContext) => Promise | null>; get: (id: string, context?: ApiContext, criteria?: Criteria) => Promise | null>; save: (entity: Entity, context?: ApiContext) => Promise; clone: (entityId: string, context?: ApiContext, behavior?: any) => Promise; hasChanges: (entity: Entity) => Promise; saveAll: (entities: EntityCollection, context?: ApiContext) => Promise; delete: (entityId: string, context?: ApiContext) => Promise; create: (context?: ApiContext, entityId?: string) => Promise | null>; }; export default _default; export type repositoryGet = { responseType: Entity | null; entityName: EntityName; id: string; context?: ApiContext; criteria?: Criteria; }; export type repositorySearch = { responseType: EntityCollection; entityName: EntityName; criteria?: Criteria; context?: ApiContext; }; export type repositorySave = { responseType: void; entityName: EntityName; entity: Entity; context?: ApiContext; }; export type repositoryClone = { responseType: unknown; entityName: EntityName; entityId: string; context?: ApiContext; behavior?: any; }; export type repositoryHasChanges = { responseType: boolean; entityName: EntityName; entity: Entity; }; export type repositorySaveAll = { responseType: void; entityName: EntityName; entities: EntityCollection; context?: ApiContext; }; export type repositoryDelete = { responseType: void; entityName: EntityName; entityId: string; context?: ApiContext; }; export type repositoryCreate = { responseType: Entity; entityName: EntityName; entityId?: string; context?: ApiContext; };