import { IdentityKitWeb } from '..'; import { NIP1SignedObject } from '@nuwa-ai/identity-kit'; export interface IdentityKitState { isConnected: boolean; isConnecting: boolean; agentDid: string | null; keyId: string | null; error: string | null; } export interface IdentityKitHook { state: IdentityKitState; connect: (options?: { scopes?: string[]; }) => Promise; sign: (payload: any) => Promise; verify: (sig: NIP1SignedObject) => Promise; logout: () => Promise; sdk: IdentityKitWeb | null; } export interface UseIdentityKitOptions { appName?: string; cadopDomain?: string; storage?: 'local' | 'indexeddb'; autoConnect?: boolean; roochRpcUrl?: string; } /** * React hook for Nuwa Identity Kit (Web) */ export declare function useIdentityKit(options?: UseIdentityKitOptions): IdentityKitHook;