import fs from 'node:fs';
const typeFile = 'packages/protocol/src/types.ts';
const content = fs.readFileSync(typeFile, 'utf8');
for (const token of ['export interface BootstrapState', 'export interface SpinAuthorization', 'export interface RealtimeEnvelope']) {
  if (!content.includes(token)) throw new Error(`Missing protocol type token: ${token}`);
}
console.log('typecheck baseline check passed');
