import { IntentPayload } from "../shared-types.js"; import { IIntentSigner } from "../interfaces/intent-signer.js"; import { NEP413Payload } from "../../lib/nep413.js"; import { MultiPayloadNep413 } from "@defuse-protocol/contract-types"; //#region src/intents/intent-signer-impl/intent-signer-nep413.d.ts type Nep413RawPayload = Pick; type MaybePromise = T | Promise; type SignMessageNEP413 = (nep413Payload: NEP413Payload, nep413Hash: Uint8Array) => MaybePromise<{ publicKey: string; signature: string; }>; interface IntentSignerNEP413Config { signMessage: SignMessageNEP413; accountId: string; } declare class IntentSignerNEP413 implements IIntentSigner { readonly standard: "nep413"; private signMessageFn; protected accountId: string; constructor({ signMessage, accountId }: IntentSignerNEP413Config); signRaw(input: Nep413RawPayload): Promise; /** Builds payload from IntentPayload and signs it via signRaw() */ signIntent(intent: IntentPayload): Promise; } //#endregion export { IntentSignerNEP413, IntentSignerNEP413Config, Nep413RawPayload };