import { MobilettoConnection } from "mobiletto-base"; import { MobilettoOrmIdArg, MobilettoOrmObject, MobilettoOrmTypeDef, MobilettoOrmApplyFunc, MobilettoOrmFindOpts, MobilettoOrmPredicate, MobilettoOrmValidationErrors, MobilettoOrmTypeDefScope } from "mobiletto-orm-typedef"; import { MobilettoOrmRepository, MobilettoOrmStorageResolver } from "./types.js"; import { MobilettoOrmRepositoryOptions } from "./orm.js"; export declare const resolveStorages: (stores: MobilettoConnection[] | MobilettoOrmStorageResolver, scope: MobilettoOrmTypeDefScope) => Promise; export declare const parseVersion: (repository: MobilettoOrmRepository, current: MobilettoOrmIdArg) => string; export declare const safeParseVersion: (repository: MobilettoOrmRepository, current: MobilettoOrmIdArg, defaultValue: string) => string; export declare const findVersion: (repository: MobilettoOrmRepository, id: MobilettoOrmIdArg, current?: MobilettoOrmIdArg, opts?: MobilettoOrmFindOpts) => Promise; export declare const includeRemovedThing: (includeRemoved: boolean, thing: MobilettoOrmObject) => boolean; export declare const verifyWrite: (repository: MobilettoOrmRepository, storages: MobilettoConnection[] | MobilettoOrmStorageResolver, typeDef: MobilettoOrmTypeDef, id: string, obj: MobilettoOrmObject, opts?: MobilettoOrmRepositoryOptions, previous?: MobilettoOrmObject) => Promise; export type MobilettoFoundMarker = { found: boolean; }; export declare const promiseFindById: (repository: MobilettoOrmRepository, storage: MobilettoConnection, field: string, value: any, id: string, first: boolean, removed: boolean, noRedact: boolean, predicate: MobilettoOrmPredicate | null, apply: MobilettoOrmApplyFunc | null, applyResults: Record | null, noCollect: boolean, found: Record, addedAnything: MobilettoFoundMarker) => Promise; export declare const validateIndexes: (repository: MobilettoOrmRepository, thing: T, errors: MobilettoOrmValidationErrors) => Promise; export declare const redactAndApply: (typeDef: MobilettoOrmTypeDef, thing: T, opts?: MobilettoOrmFindOpts) => Promise;