/** Deterministic JSON: keys sorted, no insignificant whitespace, UTF-8. */ export declare function canonicalize(value: unknown): string; export declare function b64url(bytes: Uint8Array): string; export declare function fromB64url(s: string): Uint8Array; /** base64url(sha256(pub))[:16] — stable short id for a public key. */ export declare function keyId(publicKey: Uint8Array): string; export declare function sha256Hex(text: string): string; /** Raw base64url public key for a 32-byte Ed25519 seed. */ export declare function publicKeyB64urlFromSeed(seed: Uint8Array): string; /** Sign the canonical form of `payload` with a 32-byte Ed25519 seed. */ export declare function signCanonical(payload: unknown, seed: Uint8Array): string; /** Verify `sig` over the canonical form of `payload`. Never throws. */ export declare function verifyCanonical(payload: unknown, sig: string, publicKey: Uint8Array): boolean; /** Structure an existing operator key signs to endorse a NEW operator key. */ export declare function endorsementPayload(fleetId: string, newKeyId: string, newPublicKeyB64url: string): { v: number; t: string; fleet_id: string; key_id: string; public_key: string; }; /** Structure an operator key signs to REVOKE an operator key (#27). * Revocation mutates the trust root exactly as adoption does, so it needs the * same proof: an unsigned relay `revoked:true` flag is advisory only. */ export declare function revocationPayload(fleetId: string, revokedKeyId: string, revokedAt: string): { v: number; t: string; fleet_id: string; key_id: string; revoked_at: string; }; /** Structure an operator key signs to UN-REVOKE a key (#27 / #48). * Binds the revocation being undone, issue time, and a nonce so a captured * un-revoke cannot clear a later tombstone. Never re-pins. */ export declare function unrevokePayload(fleetId: string, revokedKeyId: string, revokedAtBeingCleared: string, issuedAt: string, nonce: string): { v: number; t: string; fleet_id: string; key_id: string; revoked_at_being_cleared: string; issued_at: string; nonce: string; }; /** Structure the operator signs to endorse an AGENT's identity key (peer trust). */ export declare function agentKeyEndorsementPayload(fleetId: string, agentId: string, agentKeyId: string, agentPublicKeyB64url: string): { v: number; t: string; fleet_id: string; agent_id: string; key_id: string; public_key: string; }; //# sourceMappingURL=primitives.d.ts.map