import type { ModelOps, QueryState, QueryResult, QueryResultWithMeta } from '../model-api/types.js'; import type { RequestContext } from '../auth/types.js'; import type { DataAdapter, AdapterCapability } from '../plugins/types.js'; import type { ExternalFieldConfig } from './types.js'; import { CapabilityNotSupportedError } from './mutation-executor.js'; export { CapabilityNotSupportedError }; export interface ExternalModelOpsConfig { adapter: DataAdapter; adapterName: string; modelName: string; fields: Record; capabilities: AdapterCapability[]; } export declare class ExternalModelOps implements ModelOps { private readonly queryExecutor; private readonly mutationExecutor; constructor(config: ExternalModelOpsConfig); find(state: QueryState): Promise; findWithMeta(state: QueryState): Promise; findOne(state: QueryState): Promise | null>; count(state: QueryState): Promise; get(id: string): Promise | null>; create(data: Record, _auth?: RequestContext): Promise>; update(id: string, data: Record, _auth?: RequestContext): Promise>; delete(id: string, _auth?: RequestContext): Promise>; } //# sourceMappingURL=external-model-ops.d.ts.map