import*as t from'superstruct';var i=Object.defineProperty;var s=(e,r)=>i(e,"name",{value:r,configurable:true});var a=t.object({op:t.union([t.literal("replace"),t.literal("remove"),t.literal("add")]),path:t.array(t.union([t.string(),t.number()])),value:t.optional(t.any())}),c=a,P=s(e=>c.is(e),"isPatch"),n=t.array(a),h=n,l=s(e=>h.is(e),"isPatches"),o=t.type({patches:n,inversePatches:t.optional(n),event:t.optional(t.object({type:t.string()})),id:t.string(),date:t.string(),userId:t.optional(t.string())}),p=o,R=s(e=>p.is(e),"isKsRemoteChange"),m=t.array(o),g=m,y=s(e=>g.is(e),"isKsRemoteChanges");export{g as KsRemoteChangesStruct,R as isKsRemoteChange,y as isKsRemoteChanges,P as isPatch,l as isPatches};//# sourceMappingURL=changes.mjs.map
//# sourceMappingURL=changes.mjs.map