/**
 * TimestampPort — RFC 3161 TSA interface for the agent-sdk core.
 *
 * R8-B1 constraint: only the interface + NullTimestampPort live here.
 * Concrete adapters (FreeTSAAdapter, etc.) and all ASN.1/DER/PKCS#7
 * parsing belong in `@vauban-org/agent-sdk-verify` (external package).
 *
 * @module ports/timestamp
 */
/**
 * No-op TimestampPort for tests and development.
 *
 * `request()` always throws — configure a real TimestampPort
 * (e.g. `FreeTSAAdapter` from `@vauban-org/agent-sdk-verify`) for production.
 *
 * `verify()` always returns `{ valid: false }` — it cannot verify receipts
 * it never issued.
 */
export class NullTimestampPort {
    async request(_rootHash) {
        throw new Error("NullTimestampPort: configure a real TimestampPort " +
            "(e.g., FreeTSAAdapter from @vauban-org/agent-sdk-verify) for production.");
    }
    async verify(_receipt, _rootHash) {
        return { valid: false, reason: "NullTimestampPort cannot verify receipts" };
    }
}
//# sourceMappingURL=timestamp.js.map