import type { Model } from "@mongez/monpulse"; export declare class Pool { /** * Models pool * This is mainly used by validation rules to store the models that was used in the validation */ modelsPool: Map; /** * Add model to the models pool */ add({ model }: { model: Model; }): void; /** * Check if there is a model in the models pool */ get(id: string | number, model: typeof Model | string): T | undefined; /** * Get all models from the pool related to the given model type/collection */ list(model: typeof Model | string): T[]; } export declare function pool(): Pool; //# sourceMappingURL=index.d.ts.map