import { LitNodeClient } from "@lit-protocol/lit-node-client"; import { PKPEthersWallet } from "@lit-protocol/pkp-ethers"; import { type SessionSigsMap } from "@lit-protocol/types"; import { type SignableMessage, type TypedDataDefinition } from "viem"; import { type LitAuthMethod, type LitAuthenticateProps, type LitConfig, type LitSessionSigsMap, type LitSmartAccountAuthenticator, type LitUserMetadata } from "./types.js"; /** * Implementation of `SmartAccountAuthenticator` for lit protocol * This class requies: * `@lit-protocol/lit-node-client@cayenne` * `@lit-protocol/pkp-ethers@cayenne` * `@lit-protocol/crypto@cayenne` * `@lit-protocol/auth-helpers@cayenne` * `@lit-protocol/types@cayenne` */ export declare class LitSigner implements LitSmartAccountAuthenticator { inner: LitNodeClient; signer: PKPEthersWallet | undefined; private _pkpPublicKey; private _rpcUrl; private _authContext; session: SessionSigsMap | undefined; constructor(params: LitConfig); signerType: string; /** * if generic type is `LitAuthMethod`, authenticates the supplied authentication material. * if type `SessionSigsMap`, this implementation will respect the existing auth and use the session material. * * @param props {LitAuthenticateProps} Authentication params, only `context` is required * @returns Authenticated session material * @throws if authentication operations fail this error is thrown */ authenticate: (props: LitAuthenticateProps) => Promise; getAuthDetails: () => Promise; getAddress: () => Promise<`0x${string}`>; signMessage: (msg: SignableMessage) => Promise<`0x${string}`>; signTypedData: (params: TypedDataDefinition) => Promise<`0x${string}`>; private _checkInternals; /** * Runs the Lit Protocol authentication operations for a given piece of authentication material * * AuthMethod -> authenticates the auth material and signs a session. * * SessionSigsMap -> uses the session to create a signer instance. * * For more information on Lit Authentication see below: * * https://developer.litprotocol.com/v3/sdk/authentication/overview * * @param props {LitAuthenticationProps} properties for configuring authentication operations */ private _doAuthentication; } //# sourceMappingURL=signer.d.ts.map