json-joy
Version:
Collection of libraries for building collaborative editing apps.
22 lines (21 loc) • 943 B
TypeScript
import type { CompactTestStringLenOp } from '../codec/compact/types';
import { AbstractPredicateOp } from './AbstractPredicateOp';
import type { OperationTestStringLen } from '../types';
import { type Path } from '@jsonjoy.com/json-pointer';
import { OPCODE } from '../constants';
import type { AbstractOp } from './AbstractOp';
import type { IMessagePackEncoder } from '@jsonjoy.com/json-pack/lib/msgpack';
/**
* @category JSON Patch Extended
*/
export declare class OpTestStringLen extends AbstractPredicateOp<'test_string_len'> {
readonly len: number;
readonly not: boolean;
constructor(path: Path, len: number, not: boolean);
op(): "test_string_len";
code(): OPCODE;
test(doc: unknown): boolean;
toJson(parent?: AbstractOp): OperationTestStringLen;
toCompact(parent: undefined | AbstractOp, verbose: boolean): CompactTestStringLenOp;
encode(encoder: IMessagePackEncoder, parent?: AbstractOp): void;
}