import { HistoryEntry } from '@tldraw/store' import { TLPageId, TLRecord, TLShapeId } from '@tldraw/tlschema' import { TLEventInfo } from './event-types' /** @public */ export interface TLEventMap { // Lifecycle / Internal mount: [] 'max-shapes': [{ name: string; pageId: TLPageId; count: number }] change: [HistoryEntry] update: [] crash: [{ error: unknown }] 'stop-camera-animation': [] 'stop-following': [] event: [TLEventInfo] tick: [number] frame: [number] 'select-all-text': [{ shapeId: TLShapeId }] } /** @public */ export type TLEventMapHandler = (...args: TLEventMap[T]) => void