import type { ConnectionConfig } from "@aa-sdk/core"; import type { CreateAccountParams, SignupResponse, User } from "./types"; import { BaseSignerClient } from "./base.js"; import type { AuthParams } from "../signer"; export interface ServerSignerClientParams { connection: ConnectionConfig; } /** * ServerSignerClient is a client for signing messages using an access key. * It extends the BaseSignerClient and uses the ApiKeyStamper for signing. * Primarily intended to be used server-side. */ export declare class ServerSignerClient extends BaseSignerClient { /** * Creates an instance of ServerSignerClient. * * @param {ServerSignerClientParams} params The parameters for the client, including the access key and connection configuration * @param {ConnectionConfig} params.connection The connection configuration for the client * @param {string} params.accessKey The access key to be used for authentication * @param {string | undefined} params.accountId An optional ID to identify the account. Only required when using a single access key for multiple signers. */ constructor({ connection }: ServerSignerClientParams); /** * Unsets the user for the client */ disconnect: () => Promise; /** * Creates a new user with the given parameters. * * @param {CreateAccountParams} params The parameters for creating the account * @returns {Promise} A promise that resolves to the signup response */ createAccount: (params: CreateAccountParams) => Promise; /** * Authenticates the user with an access key. * * @param {Extract} params The parameters for the authentication * @returns {Promise} A promise that resolves to the user */ authenticateWithAccessKey: ({ accessKey, accountId, }: Extract) => Promise; private completeAuthWithApiKey; /** * Unimplemented functions for server signer. * Required to extend the BaseSignerClient class. */ initSmsAuth: () => never; submitJwt: () => never; protected initSessionStamper: () => never; protected initWebauthnStamper: () => never; initEmailAuth: () => never; submitOtpCode: () => never; completeAuthWithBundle: () => never; oauthWithRedirect: () => never; oauthWithPopup: () => never; exportWallet: () => never; targetPublicKey: () => never; getWebAuthnAttestation: () => never; getOauthConfig: () => never; } //# sourceMappingURL=server.d.ts.map