/** Require the CLI's explicit refusal instead of accepting an unrelated failure. */ export function requireCheckpointCliRefusal( operation: () => Promise, expectedCode: string, ): Promise<{ readonly code: string; readonly [key: string]: unknown }>; /** Verify refusal before the caller restores its deliberately invalid manifest. */ export function assertCheckpointRefusalPreservesManifest( operation: () => Promise, manifestPath: string, expectedBytes: Uint8Array, ): Promise<{ readonly code: string; readonly [key: string]: unknown }>;