// Local convenience aliases for the auto-generated Wails models.
// We re-export the model classes/interfaces so the rest of the app imports
// from one stable path instead of the long wailsjs/go/models.ts.

import { infra, main } from "../wailsjs/go/models";

export type RoomSummary = infra.RoomSummary;
export type MatrixEvent = main.MatrixEvent;

// SyncEventView is what the Go runtime emits through "matrix:event".
// Not part of the Wails-generated module (it never appears as a return type).
export interface SyncEventView {
  type: string;
  room_id: string;
  event_id: string;
  sender: string;
  ts: number;
  body?: string;
}
