import type { EnvelopeDecodeOptions, EnvelopeEncodeOptions, EnvelopeSignOptions, SignaturePayload, PayloadSpec, DecodedEnvelope, DelegationPayload, InvocationPayload, Payload } from './types.js'; import type { SignatureType } from 'iso-signatures/types'; /** Version */ export declare const VERSION = "1.0.0-rc.1"; /** * Get the signature payload for a given payload */ export declare function getSignaturePayload(options: { spec: PayloadSpec; payload: Payload; version?: string; signatureType: SignatureType; }): SignaturePayload; /** * Decode a signature payload */ export declare function decodeSignaturePayload(bytes: Uint8Array): { alg: SignatureType; enc: import("./types.js").VarsigEncoding; payload: Payload; }; /** * Check if a payload is an invocation payload */ export declare function isInvocationPayload(payload: Payload): payload is InvocationPayload; /** * Check if a payload is a delegation payload */ export declare function isDelegationPayload(payload: Payload): payload is DelegationPayload; export declare function sign(options: EnvelopeSignOptions): Promise<{ signature: Uint8Array; signaturePayload: SignaturePayload; }>; /** * Encode a UCAN envelope * * @see https://github.com/ucan-wg/spec#envelope */ export declare function encode(options: EnvelopeEncodeOptions): Uint8Array; /** * Decode a UCAN envelope * * @see https://github.com/ucan-wg/spec#envelope */ export declare function decode(options: EnvelopeDecodeOptions): DecodedEnvelope; //# sourceMappingURL=envelope.d.ts.map