import { Entity, EntityBlueprint, EntityQuery, EntityQueryShape, WhereEntityShape, WhereEntityTyped } from "@entity-space/elements"; import { DeepPartial, MaybeAsync } from "@entity-space/utils"; import { EntityQueryTracing } from "../entity-query-tracing"; import { AcceptedEntitySourcing } from "./accepted-entity-sourcing"; export type LoadEntitiesFnResult = MaybeAsync | MaybeAsync; export interface LoadEntitiesSort { key: string; ascending: boolean; } export interface LoadEntitiesPage { index: number; size: number; from: number; to: number; top: number; skip: number; } export type LoadEntitiesFn = (args: { query: EntityQuery; selection: DeepPartial; criteria: WhereEntityTyped>; parameters: EntityBlueprint.Type

; sort?: LoadEntitiesSort[]; page?: LoadEntitiesPage; }) => MaybeAsync> | MaybeAsync[]>; export declare class EntitySource { #private; constructor(tracing: EntityQueryTracing, queryShape: EntityQueryShape, load: LoadEntitiesFn, whereEntityShape?: WhereEntityShape); accept(queryShape: EntityQueryShape): AcceptedEntitySourcing | false; }