/** * The set of sub-document operation status strings. This is the single source * of truth shared by {@link subdocumentStatusFromCpp} (which produces these * values) and {@link SdUtils.parseSubdocStatus} (which maps them to errors), so * the two cannot silently drift: a typo or a new status becomes a type error. * * @internal */ export type SubdocStatus = 'success' | 'path_not_found' | 'path_mismatch' | 'path_invalid' | 'path_too_big' | 'doc_too_deep' | 'value_cannot_insert' | 'doc_not_json' | 'num_range_error' | 'delta_invalid' | 'path_exists' | 'value_too_deep' | 'unknown'; /** * The operation a {@link LookupInSpec} performs. Owned by the SDK rather than * the native addon, so a spec can be built without loading it; each protocol * maps it to its own wire value at dispatch. * * @internal */ export declare enum LookupInOp { Get = "get", GetDoc = "get_doc", Exists = "exists", Count = "count" } /** * The operation a {@link MutateInSpec} performs. Owned by the SDK for the * same reason as {@link LookupInOp}. * * @internal */ export declare enum MutateInOp { Insert = "insert", Upsert = "upsert", Replace = "replace", Remove = "remove", ArrayAppend = "array_append", ArrayPrepend = "array_prepend", ArrayInsert = "array_insert", ArrayAddUnique = "array_add_unique", Counter = "counter", SetDoc = "set_doc", RemoveDoc = "remove_doc" } export declare class SdUtils { private static _parsePath; private static _insertByPath; static insertByPath(root: any, path: string, value: any): any; private static _getByPath; static getByPath(value: any, path: string): any; static convertMacroCasToCas(cas: string): string; static parseSubdocStatus(status: SubdocStatus): never; }