import { StaticJsonRpcProvider } from '@ethersproject/providers' import { API } from '../services' import { DeviceData, webAuthnOptions, WebAuthnSigner } from '../wallet' import { ComethProvider } from '../wallet/ComethProvider' declare const _default: { createCredential: ( webAuthnOptions: webAuthnOptions, passKeyName?: string | undefined ) => Promise<{ publicKeyX: string publicKeyY: string publicKeyId: string publicKeyAlgorithm: number }> signWithCredential: ( challenge: BufferSource, publicKeyCredential?: PublicKeyCredentialDescriptor[] | undefined ) => Promise getWebAuthnSignature: ( hash: string, publicKeyCredential?: PublicKeyCredentialDescriptor[] | undefined ) => Promise<{ encodedSignature: string publicKeyId: string }> waitWebAuthnSignerDeployment: ( P256FactoryContractAddress: string, publicKey_X: string, publicKey_Y: string, provider: StaticJsonRpcProvider | ComethProvider ) => Promise isWebAuthnCompatible: (webAuthnOptions: webAuthnOptions) => Promise getSignerFromCredentials: ({ API, publicKeyX, publicKeyY, walletAddress }: { API: API publicKeyX: string publicKeyY: string walletAddress?: string | undefined }) => Promise<{ deviceData: DeviceData signerAddress: string walletAddress: string }> signWithWebAuthn: ( challenge: string, webAuthnSigners?: WebAuthnSigner[] | undefined ) => Promise<{ encodedSignature: string publicKeyId: string }> getSigner: ({ API, walletAddress, provider }: { API: API walletAddress: string provider: StaticJsonRpcProvider }) => Promise<{ publicKeyId: string signerAddress: string }> retrieveWalletAddressFromSigner: (API: API) => Promise setWebauthnCredentialsInStorage: ( walletAddress: string, publicKeyId: string, signerAddress: string ) => void getWebauthnCredentialsInStorage: (walletAddress: string) => string | null } export default _default