export function newLTHashState(): {
    version: number;
    hash: Buffer<ArrayBuffer>;
    indexValueMap: {};
};
export function encodeSyncdPatch({ type, index, syncAction, apiVersion, operation }: {
    type: any;
    index: any;
    syncAction: any;
    apiVersion: any;
    operation: any;
}, myAppStateKeyId: any, state: any, getAppStateSyncKey: any): Promise<{
    patch: {
        patchMac: NonSharedBuffer;
        snapshotMac: NonSharedBuffer;
        keyId: {
            id: Buffer<ArrayBuffer>;
        };
        mutations: {
            operation: any;
            record: {
                index: {
                    blob: NonSharedBuffer;
                };
                value: {
                    blob: Buffer<ArrayBuffer>;
                };
                keyId: {
                    id: Buffer<ArrayBuffer>;
                };
            };
        }[];
    };
    state: any;
}>;
export function decodeSyncdMutations(msgMutations: any, initialState: any, getAppStateSyncKey: any, onMutation: any, validateMacs: any): Promise<{
    hash: Buffer<any>;
    indexValueMap: any;
}>;
export function decodeSyncdPatch(msg: any, name: any, initialState: any, getAppStateSyncKey: any, onMutation: any, validateMacs: any): Promise<{
    hash: Buffer<any>;
    indexValueMap: any;
}>;
export function extractSyncdPatches(result: any, options: any): Promise<{}>;
export function downloadExternalBlob(blob: any, options: any): Promise<Buffer<ArrayBuffer>>;
export function downloadExternalPatch(blob: any, options: any): Promise<any>;
export function decodeSyncdSnapshot(name: any, snapshot: any, getAppStateSyncKey: any, minimumVersionNumber: any, validateMacs?: boolean): Promise<{
    state: {
        version: number;
        hash: Buffer<ArrayBuffer>;
        indexValueMap: {};
    };
    mutationMap: {};
}>;
export function decodePatches(name: any, syncds: any, initial: any, getAppStateSyncKey: any, options: any, minimumVersionNumber: any, logger: any, validateMacs?: boolean): Promise<{
    state: any;
    mutationMap: {};
}>;
export function chatModificationToAppPatch(mod: any, jid: any): {
    syncAction: {
        muteAction: {
            muted: boolean;
            muteEndTimestamp: any;
        };
        archiveChatAction?: undefined;
        markChatAsReadAction?: undefined;
        deleteMessageForMeAction?: undefined;
        clearChatAction?: undefined;
        pinAction?: undefined;
        contactAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        starAction?: undefined;
        deleteChatAction?: undefined;
        pushNameSetting?: undefined;
        quickReplyAction?: undefined;
        labelEditAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: any[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        archiveChatAction: {
            archived: boolean;
            messageRange: any;
        };
        muteAction?: undefined;
        markChatAsReadAction?: undefined;
        deleteMessageForMeAction?: undefined;
        clearChatAction?: undefined;
        pinAction?: undefined;
        contactAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        starAction?: undefined;
        deleteChatAction?: undefined;
        pushNameSetting?: undefined;
        quickReplyAction?: undefined;
        labelEditAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: any[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        markChatAsReadAction: {
            read: any;
            messageRange: any;
        };
        muteAction?: undefined;
        archiveChatAction?: undefined;
        deleteMessageForMeAction?: undefined;
        clearChatAction?: undefined;
        pinAction?: undefined;
        contactAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        starAction?: undefined;
        deleteChatAction?: undefined;
        pushNameSetting?: undefined;
        quickReplyAction?: undefined;
        labelEditAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: any[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        deleteMessageForMeAction: {
            deleteMedia: any;
            messageTimestamp: any;
        };
        muteAction?: undefined;
        archiveChatAction?: undefined;
        markChatAsReadAction?: undefined;
        clearChatAction?: undefined;
        pinAction?: undefined;
        contactAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        starAction?: undefined;
        deleteChatAction?: undefined;
        pushNameSetting?: undefined;
        quickReplyAction?: undefined;
        labelEditAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: any[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        clearChatAction: {
            messageRange: any;
        };
        muteAction?: undefined;
        archiveChatAction?: undefined;
        markChatAsReadAction?: undefined;
        deleteMessageForMeAction?: undefined;
        pinAction?: undefined;
        contactAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        starAction?: undefined;
        deleteChatAction?: undefined;
        pushNameSetting?: undefined;
        quickReplyAction?: undefined;
        labelEditAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: any[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        pinAction: {
            pinned: boolean;
        };
        muteAction?: undefined;
        archiveChatAction?: undefined;
        markChatAsReadAction?: undefined;
        deleteMessageForMeAction?: undefined;
        clearChatAction?: undefined;
        contactAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        starAction?: undefined;
        deleteChatAction?: undefined;
        pushNameSetting?: undefined;
        quickReplyAction?: undefined;
        labelEditAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: any[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        contactAction: any;
        muteAction?: undefined;
        archiveChatAction?: undefined;
        markChatAsReadAction?: undefined;
        deleteMessageForMeAction?: undefined;
        clearChatAction?: undefined;
        pinAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        starAction?: undefined;
        deleteChatAction?: undefined;
        pushNameSetting?: undefined;
        quickReplyAction?: undefined;
        labelEditAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: any[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        privacySettingDisableLinkPreviewsAction: any;
        muteAction?: undefined;
        archiveChatAction?: undefined;
        markChatAsReadAction?: undefined;
        deleteMessageForMeAction?: undefined;
        clearChatAction?: undefined;
        pinAction?: undefined;
        contactAction?: undefined;
        starAction?: undefined;
        deleteChatAction?: undefined;
        pushNameSetting?: undefined;
        quickReplyAction?: undefined;
        labelEditAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: string[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        starAction: {
            starred: boolean;
        };
        muteAction?: undefined;
        archiveChatAction?: undefined;
        markChatAsReadAction?: undefined;
        deleteMessageForMeAction?: undefined;
        clearChatAction?: undefined;
        pinAction?: undefined;
        contactAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        deleteChatAction?: undefined;
        pushNameSetting?: undefined;
        quickReplyAction?: undefined;
        labelEditAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: any[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        deleteChatAction: {
            messageRange: any;
        };
        muteAction?: undefined;
        archiveChatAction?: undefined;
        markChatAsReadAction?: undefined;
        deleteMessageForMeAction?: undefined;
        clearChatAction?: undefined;
        pinAction?: undefined;
        contactAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        starAction?: undefined;
        pushNameSetting?: undefined;
        quickReplyAction?: undefined;
        labelEditAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: any[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        pushNameSetting: {
            name: any;
        };
        muteAction?: undefined;
        archiveChatAction?: undefined;
        markChatAsReadAction?: undefined;
        deleteMessageForMeAction?: undefined;
        clearChatAction?: undefined;
        pinAction?: undefined;
        contactAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        starAction?: undefined;
        deleteChatAction?: undefined;
        quickReplyAction?: undefined;
        labelEditAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: string[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        quickReplyAction: {
            count: number;
            deleted: any;
            keywords: any[];
            message: any;
            shortcut: any;
        };
        muteAction?: undefined;
        archiveChatAction?: undefined;
        markChatAsReadAction?: undefined;
        deleteMessageForMeAction?: undefined;
        clearChatAction?: undefined;
        pinAction?: undefined;
        contactAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        starAction?: undefined;
        deleteChatAction?: undefined;
        pushNameSetting?: undefined;
        labelEditAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: any[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        labelEditAction: {
            name: any;
            color: any;
            predefinedId: any;
            deleted: any;
        };
        muteAction?: undefined;
        archiveChatAction?: undefined;
        markChatAsReadAction?: undefined;
        deleteMessageForMeAction?: undefined;
        clearChatAction?: undefined;
        pinAction?: undefined;
        contactAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        starAction?: undefined;
        deleteChatAction?: undefined;
        pushNameSetting?: undefined;
        quickReplyAction?: undefined;
        labelAssociationAction?: undefined;
    };
    index: any[];
    type: string;
    apiVersion: number;
    operation: any;
} | {
    syncAction: {
        labelAssociationAction: {
            labeled: boolean;
        };
        muteAction?: undefined;
        archiveChatAction?: undefined;
        markChatAsReadAction?: undefined;
        deleteMessageForMeAction?: undefined;
        clearChatAction?: undefined;
        pinAction?: undefined;
        contactAction?: undefined;
        privacySettingDisableLinkPreviewsAction?: undefined;
        starAction?: undefined;
        deleteChatAction?: undefined;
        pushNameSetting?: undefined;
        quickReplyAction?: undefined;
        labelEditAction?: undefined;
    };
    index: any[];
    type: string;
    apiVersion: number;
    operation: any;
};
export function processSyncAction(syncAction: any, ev: any, me: any, initialSyncOpts: any, logger: any): void;
