import type { WildduckAPI } from "../../network/wildduck-client"; import type { WildduckKeyInfo, WildduckUserAuth } from "@johnqh/types"; export interface EncryptionSettings { encryptMessages: boolean; encryptForwarded: boolean; pubKey: string; keyInfo?: WildduckKeyInfo; } export interface UpdateEncryptionParams { userAuth: WildduckUserAuth; encryptMessages?: boolean; encryptForwarded?: boolean; pubKey?: string; } export declare const useWildduckUserEncryption: (api: WildduckAPI, userAuth?: WildduckUserAuth) => { encryption: EncryptionSettings | undefined; isLoading: boolean; isError: boolean; error: Error | null; encryptMessages: boolean | undefined; encryptForwarded: boolean | undefined; pubKey: string | undefined; keyInfo: WildduckKeyInfo | undefined; updateEncryption: import("@tanstack/react-query").UseMutateFunction; updateEncryptionAsync: import("@tanstack/react-query").UseMutateAsyncFunction; isUpdating: boolean; updatePubKey: import("@tanstack/react-query").UseMutateFunction; updatePubKeyAsync: import("@tanstack/react-query").UseMutateAsyncFunction; isUpdatingKey: boolean; removePubKey: import("@tanstack/react-query").UseMutateFunction; removePubKeyAsync: import("@tanstack/react-query").UseMutateAsyncFunction; isRemovingKey: boolean; }; //# sourceMappingURL=useWildduckUserEncryption.d.ts.map