import { SchemaStore } from "../schema-store/schema-store"; import { DocumentTree } from "../result-tree/classes/document/document-tree"; import { GetStoreConfig } from "../schema-store/interfaces/schema-store"; import { SchemaResolver } from "../schema-resolver/schema-resolver"; import { NodeRoute } from "../input-tree/core/node/value-object/route"; interface Props { schemasStore: SchemaStore; omitResolver: SchemaResolver; caller: NodeRoute; omitCurrentDocument?: DocumentTree; } /** Store to interact with all datasets */ export declare class DatasetStore { private readonly schemasStore; private readonly omitCurrentDocument; private readonly omitResolver; private readonly caller; constructor({ omitCurrentDocument, omitResolver, schemasStore, caller, }: Props); /** * Allows you to access values from a schema from anywhere in the dataset * * @param route Value route to access * @param config.where Function to filter schema documents * * @example * store.get("User") // user schema documents * store.get("User.id") // user ids * store.get("User.id", { * where: (fields) => { * return fields.age > 40 * } * }) */ get(route: string, iconfig?: GetStoreConfig): Promise; /** * Returns the documents of the schema that uses this method */ currentDocuments(): R[]; } export {};