/**
 * TanStack Query mutations for identity operations
 * Provides offline-first mutations for identity creation, import, and sync
 * Never deletes identity on errors - preserves user data
 */
import type { User } from '../../models/interfaces';
export interface CreateIdentityResult {
    recoveryPhrase: string[];
    synced: boolean;
}
export interface ImportIdentityResult {
    synced: boolean;
}
/**
 * Hook for creating a new identity with offline support
 * Never deletes identity on error - preserves user data
 */
export declare function useCreateIdentity(createIdentityFn: () => Promise<CreateIdentityResult>): import("@tanstack/react-query").UseMutationResult<CreateIdentityResult, Error, void, unknown>;
/**
 * Hook for importing an identity from recovery phrase
 * Never deletes identity on error - preserves user data
 */
export declare function useImportIdentity(importIdentityFn: (phrase: string) => Promise<ImportIdentityResult>): import("@tanstack/react-query").UseMutationResult<ImportIdentityResult, Error, string, unknown>;
/**
 * Hook for syncing identity with server
 * Never deletes identity on error - only logs and allows retry
 */
export declare function useSyncIdentity(syncIdentityFn: () => Promise<User>): import("@tanstack/react-query").UseMutationResult<User, Error, void, unknown>;
//# sourceMappingURL=useIdentityMutations.d.ts.map