import { ModifyCtx } from '../../../index.js';
import { PropDef, SchemaTypeDef } from '@based/schema/def';
import { ModifyState } from '../ModifyRes.js';
import { ModifyErr, ModifyOp } from '../types.js';
export declare function writeReference(value: number | ModifyState | {
    id: number;
    upsert?: Record<string, any>;
} | {
    id?: number;
    upsert: Record<string, any>;
}, ctx: ModifyCtx, schema: SchemaTypeDef, def: PropDef, res: ModifyState, modifyOp: ModifyOp): ModifyErr;
