/**
 * Transport surface re-export. Lives in core so transport implementations
 * never need to reach into the public types module.
 */

export type {
  ChatTransport,
  ChatStreamEvent,
  CreateSessionOptions,
  SessionInfo,
  HistoryPage,
  StreamOptions,
  SendOptions,
} from '../../types';

export class TransportError extends Error {
  code: string;

  constructor(message: string, code = 'transport_error') {
    super(message);
    this.name = 'TransportError';
    this.code = code;
  }
}
