import { AnyRawTransaction, AnyRawTransactionInstance } from "../types.js"; import { Serializable } from "../../bcs/index.js"; /** * Derives the appropriate raw transaction type based on the provided transaction details. * This function helps in identifying whether the transaction is a FeePayerRawTransaction, * MultiAgentRawTransaction, or a standard RawTransaction. * * @param transaction - An object representing an Aptos transaction, which may include: * - feePayerAddress - The address of the fee payer (optional). * - secondarySignerAddresses - An array of secondary signer addresses (optional). * - rawTransaction - The raw transaction data. * * @returns FeePayerRawTransaction | MultiAgentRawTransaction | RawTransaction * @group Implementation * @category Transactions */ export declare function deriveTransactionType(transaction: AnyRawTransaction): AnyRawTransactionInstance; /** * Generates the 'signing message' form of a message to be signed. * This function combines a domain separator with the byte representation of the message to create a signing message. * * @param bytes - The byte representation of the message to be signed and sent to the chain. * @param domainSeparator - A domain separator that starts with 'APTOS::'. * * @returns The Uint8Array of the signing message. * @group Implementation * @category Transactions */ export declare function generateSigningMessage(bytes: Uint8Array, domainSeparator: string): Uint8Array; /** * @deprecated * Use CryptoHashable instead by having your class implement it and call hash() to get the signing message. * * Generates the 'signing message' form of a serializable value by serializing it and using the constructor name as the domain * separator. * * @param serializable - An object that has a BCS serialized form. * * @returns The Uint8Array of the signing message. * @group Implementation * @category Transactions */ export declare function generateSigningMessageForSerializable(serializable: Serializable): Uint8Array; /** * Generates the 'signing message' form of a transaction by deriving the type of transaction and applying the appropriate domain * separator based on the presence of a fee payer or secondary signers. * * @param transaction - A transaction that is to be signed, which can include a fee payer address or secondary signer addresses. * * @returns The Uint8Array of the signing message. * @group Implementation * @category Transactions */ export declare function generateSigningMessageForTransaction(transaction: AnyRawTransaction): Uint8Array; //# sourceMappingURL=signingMessage.d.ts.map