import type { PampEnvelopeHeader, PampIdentity, PampMessage, PampSession } from './types.js'; /** * Build a full Base64-encoded PAMP envelope. * * 1. Encrypts the body using session keys * 2. Signs header + ciphertext with identity RSA key * 3. Assembles header JSON + delimiter + encrypted body * 4. Base64-encodes the whole thing */ export declare function buildEnvelope(body: string, header: Omit, session: PampSession, identity: PampIdentity): string; /** * Parse a Base64 envelope into header + encrypted body. * Does NOT decrypt or verify — call decryptEnvelope() for that. */ export declare function parseEnvelope(base64Envelope: string): { header: PampEnvelopeHeader; encryptedBody: string; }; /** * Verify signature and decrypt the body of a parsed envelope. */ export declare function decryptEnvelope(header: PampEnvelopeHeader, encryptedBody: string, session: PampSession, senderIdentityPublicKey: string): PampMessage; //# sourceMappingURL=envelope.d.ts.map