* Subscribe to debug events. * @param event - Event type: 'record' or 'error' * @param handler - Event handler * @returns Unsubscribe function
(event: "record", handler: DebugRecordHandler)
| 326 | * @returns Unsubscribe function |
| 327 | */ |
| 328 | on(event: "record", handler: DebugRecordHandler): () => void; |
| 329 | on(event: "error", handler: DebugErrorHandler): () => void; |
| 330 | |
| 331 | /* --- State --- */ |