import { ModifyCtx } from '../../index.js';
import { SchemaTypeDef } from '@based/schema/def';
import { ModifyState } from './ModifyRes.js';
import { ModifyErr, ModifyOp } from './types.js';
export declare function modify(ctx: ModifyCtx, res: ModifyState, obj: Record<string, any>, schema: SchemaTypeDef, mod: ModifyOp, tree: SchemaTypeDef['tree'], overwrite: boolean, unsafe?: boolean): ModifyErr;
