import { Address } from '@solana/addresses'; import { SignatureBytes } from '@solana/keys'; import { OffchainMessage, OffchainMessageBytes } from './message'; type OrderedMap = Record; type OffchainMessageSignaturesMap = OrderedMap; export interface OffchainMessageEnvelope { /** The bytes of the combined offchain message preamble and content */ readonly content: OffchainMessageBytes; /** * A map between the addresses of an offchain message's signers, and the 64-byte Ed25519 * signature of the combined message preamble and message content by the private key associated * with each. */ readonly signatures: OffchainMessageSignaturesMap; } /** * Returns an {@link OffchainMessageEnvelope} object for a given {@link OffchainMessage}. * * This includes the compiled bytes of the offchain message, and a map of signatures. This map will * have a key for each address that is required to sign the message. The message envelope will not * yet have signatures for any of these signatories. * * @remarks * If the offchain message version is known ahead of time, use one of the compile functions * specific to that version so as not to bundle more code than you need. */ export declare function compileOffchainMessageEnvelope(offchainMessage: OffchainMessage): OffchainMessageEnvelope; export {}; //# sourceMappingURL=envelope.d.ts.map