import type { WildduckAPI } from "../../network/wildduck-client"; import type { WildduckUserAuth } from "@johnqh/types"; export interface UserProfile { username: string; name: string; address: string; language?: string | undefined; retention?: number | undefined; uploadSentMessages?: boolean | undefined; tags: string[]; metaData?: Record | undefined; disabled: boolean; suspended: boolean; activated: boolean; hasPasswordSet: boolean; disabledScopes: string[]; } export interface UpdateProfileParams { userAuth: WildduckUserAuth; name?: string; language?: string; retention?: number; uploadSentMessages?: boolean; tags?: string[]; metaData?: Record | string; disabled?: boolean; suspended?: boolean; disabledScopes?: string[]; } export interface UpdatePasswordParams { userAuth: WildduckUserAuth; existingPassword?: string; password: string; hashedPassword?: boolean; allowUnsafe?: boolean; } export declare const useWildduckUserProfile: (api: WildduckAPI, userAuth?: WildduckUserAuth) => { profile: UserProfile | undefined; isLoading: boolean; isError: boolean; error: Error | null; username: string | undefined; name: string | undefined; address: string | undefined; language: string | undefined; tags: string[]; disabled: boolean | undefined; suspended: boolean | undefined; activated: boolean | undefined; hasPasswordSet: boolean | undefined; updateProfile: (params: UpdateProfileParams) => void; updateProfileAsync: (params: UpdateProfileParams) => Promise; isUpdatingProfile: boolean; updatePassword: (params: UpdatePasswordParams) => void; updatePasswordAsync: (params: UpdatePasswordParams) => Promise; isUpdatingPassword: boolean; updateTags: (params: { userAuth: WildduckUserAuth; tags: string[]; }) => void; updateTagsAsync: (params: { userAuth: WildduckUserAuth; tags: string[]; }) => Promise; isUpdatingTags: boolean; setAccountStatus: (params: { userAuth: WildduckUserAuth; disabled?: boolean; suspended?: boolean; }) => void; setAccountStatusAsync: (params: { userAuth: WildduckUserAuth; disabled?: boolean; suspended?: boolean; }) => Promise; isUpdatingStatus: boolean; }; //# sourceMappingURL=useWildduckUserProfile.d.ts.map