import { Boom } from '@hapi/boom'; import { AuthenticationState, ChatModification } from "../Types"; import { proto } from '../WAProto'; export declare const encodeSyncdPatch: (action: ChatModification, lastMessageKey: proto.IMessageKey, { creds: { appStateSyncKeys: [key], appStateVersion } }: AuthenticationState) => proto.ISyncdPatch; export declare const decodeSyncdPatch: (msg: proto.ISyncdPatch, { creds }: AuthenticationState) => { mutations: { action: proto.ISyncActionValue; index: [string, string]; }[]; failures: Boom[]; };