import { ThresholdBfvParamsPresetName, EnclaveSDK, AllEventTypes, EventCallback, EnclaveEventType, RegistryEventType } from '@enclave-e3/sdk'; export { AllEventTypes, CiphernodeAddedData, CiphernodeRemovedData, CiphertextOutputPublishedData, CommitteePublishedData, CommitteeRequestedData, E3ActivatedData, E3RequestedData, EnclaveEvent, EnclaveEventType, EventCallback, PlaintextOutputPublishedData, RegistryEventType } from '@enclave-e3/sdk'; interface UseEnclaveSDKConfig { contracts?: { enclave: `0x${string}`; ciphernodeRegistry: `0x${string}`; feeToken: `0x${string}`; }; autoConnect?: boolean; thresholdBfvParamsPresetName?: ThresholdBfvParamsPresetName; } interface UseEnclaveSDKReturn { sdk: EnclaveSDK | null; isInitialized: boolean; error: string | null; requestE3: typeof EnclaveSDK.prototype.requestE3; getThresholdBfvParamsSet: typeof EnclaveSDK.prototype.getThresholdBfvParamsSet; onEnclaveEvent: (eventType: T, callback: EventCallback) => void; off: (eventType: T, callback: EventCallback) => void; EnclaveEventType: typeof EnclaveEventType; RegistryEventType: typeof RegistryEventType; } /** * React hook for interacting with Enclave SDK * * @param config Configuration for the SDK initialization * @returns Object containing SDK instance and helper methods * * @example * ```tsx * import { useEnclaveSDK } from '@enclave-e3/react'; * * function MyComponent() { * const { * sdk, * isInitialized, * error, * requestE3, * onEnclaveEvent * } = useEnclaveSDK({ * autoConnect: true, * contracts: { * enclave: '0x...', * ciphernodeRegistry: '0x...', * feeToken: '0x...', * }, * thresholdBfvParamsPresetName: 'INSECURE_THRESHOLD_512', * }); * * // Use the SDK... * } * ``` */ declare const useEnclaveSDK: (config: UseEnclaveSDKConfig) => UseEnclaveSDKReturn; export { type UseEnclaveSDKConfig, type UseEnclaveSDKReturn, useEnclaveSDK };