import type { CreateIPRInput, InstructionProvenanceReceipt } from './types.js';
/** Typed error for IPR construction failures. */
export declare class IPRConstructionError extends Error {
    readonly code: string;
    constructor(code: string, message: string);
}
/**
 * Build, sign, and return a complete InstructionProvenanceReceipt envelope.
 * Performs all v0.2 invariants:
 *   - tier locked to 'self-asserted'
 *   - discovery_patterns non-empty
 *   - every instruction_files[].path canonicalized
 *   - instruction_files sorted in canonical order
 *   - context_root derived from sorted files
 *   - receipt_id = sha256(canonical envelope bytes)
 *   - signature = Ed25519 over canonical envelope bytes
 */
export declare function createInstructionProvenanceReceipt(input: CreateIPRInput): InstructionProvenanceReceipt;
/** Ed25519 sign using the same PKCS8-prefix construction as the bilateral
 *  fixture generator. Returns hex (128 chars). */
export declare function signEd25519(message: string | Uint8Array, privateKeyHex: string): string;
//# sourceMappingURL=envelope.d.ts.map