import type { CompactAddOp } from '../codec/compact/types';
import { AbstractOp } from './AbstractOp';
import type { OperationAdd } from '../types';
import { type Path } from '@jsonjoy.com/json-pointer';
import { OPCODE } from '../constants';
/**
 * @category JSON Patch
 */
export declare class OpAdd extends AbstractOp<'add'> {
    readonly value: unknown;
    constructor(path: Path, value: unknown);
    op(): "add";
    code(): OPCODE;
    apply(doc: unknown): {
        doc: unknown;
        old: any;
    };
    toJson(parent?: AbstractOp): OperationAdd;
    toCompact(parent: undefined | AbstractOp, verbose: boolean): CompactAddOp;
}
