/** * Generates a SIWE (Sign-In with Ethereum) message for authentication. * This message needs to be signed by the user's wallet to prove ownership of the address. * * @param {string} address - The Ethereum address that will be used for authentication * @returns {string} The prepared SIWE message ready to be signed by the user's wallet */ export declare function getSiweMessageToAuthenticate(address: string): string; /** * Verifies a SIWE (Sign-In with Ethereum) message and signature. * Validates the signature, nonce, domain, and audience before authenticating the user. * * @param {string} messageToSign - The original SIWE message that was signed * @param {string} signature - The signature generated by signing the message with the user's wallet * @returns {Promise} The verified Ethereum address if authentication is successful * @throws {Error} If the SIWE message verification fails for any reason */ export declare function authenticateWithSiwe(messageToSign: string, signature: string): Promise; /** * Authenticates a request using a JWT token. This method is specifically for delegator authentication. * Verifies the JWT signature and validates the app ID and version. * * @param jwt - The JSON Web Token to verify * @param appId - The expected application ID that should match the JWT payload * @param appVersion - The expected application version that should match the JWT payload * @returns The Ethereum address of the PKP (Programmable Key Pair) from the JWT payload * @throws {Error} If the JWT is invalid or doesn't match the expected app ID/version */ export declare function authenticateWithJwt(jwt: string, appId: number, appVersion: number): Promise; //# sourceMappingURL=authentication.d.ts.map