import { type ServerResponse } from "node:http"; import type { RequestContext } from './context.js'; /** * Validate a `preSignedAuthorAttestation` payload from a finalize request. * * Shape: * { address: "0x...", signature: { r: "0x..." | number[], vs: "0x..." | number[] } } * * Returns the normalised value with byte arrays (Uint8Array) ready to forward * into `agent.assertion.finalize`. Returns `undefined` and writes an * appropriate 400 response when the payload is malformed. * * The on-chain signature check happens later inside the agent's finalize * path (it recovers the address from the EIP-712 digest and fails closed * if the recovered signer doesn't match the claimed address). * * RFC-001 Section 9.x -- Phase C -- pre-signed attestations are a finalize-time * concern. The publish layer no longer accepts them; they're consumed * here and stamped into the seal. */ type PreSignedAuthorAttestation = { address: string; reservedKaId: bigint; signature: { r: Uint8Array; vs: Uint8Array; }; }; export declare function validatePreSignedAuthorAttestation(raw: unknown, res: ServerResponse): PreSignedAuthorAttestation | undefined; export declare function handleMemoryRoutes(ctx: RequestContext): Promise; export {}; //# sourceMappingURL=memory.d.ts.map