| 243 | * Debug controller interface. |
| 244 | */ |
| 245 | export interface DebugController { |
| 246 | /* --- Low-level Engine Access --- */ |
| 247 | |
| 248 | /** |
| 249 | * Enable debug tracing. |
| 250 | * @param config - Optional configuration overrides |
| 251 | */ |
| 252 | enable(config?: Partial<DebugConfig>): Promise<void>; |
| 253 | |
| 254 | /** |
| 255 | * Disable debug tracing. |
| 256 | */ |
| 257 | disable(): Promise<void>; |
| 258 | |
| 259 | /** |
| 260 | * Reset (clear) all debug records while keeping tracing enabled. |
| 261 | */ |
| 262 | reset(): Promise<void>; |
| 263 | |
| 264 | /* --- Query Interface --- */ |
| 265 | |
| 266 | /** |
| 267 | * Query debug records from the engine. |
| 268 | * @param filter - Optional query filter |
| 269 | */ |
| 270 | query(filter?: DebugQuery): Promise<readonly DebugRecord[]>; |
| 271 | |
| 272 | /** |
| 273 | * Get the payload for a specific record. |
| 274 | * @param recordId - The record ID |
| 275 | */ |
| 276 | getPayload<T extends DebugPayload>(recordId: bigint): Promise<T | null>; |
| 277 | |
| 278 | /** |
| 279 | * Get debug statistics. |
| 280 | */ |
| 281 | getStats(): Promise<DebugStats>; |
| 282 | |
| 283 | /** |
| 284 | * Export all debug records to a buffer for offline analysis. |
| 285 | */ |
| 286 | export(): Promise<Uint8Array>; |
| 287 | |
| 288 | /** |
| 289 | * Export a deterministic, versioned JSON debug bundle. |
| 290 | */ |
| 291 | exportBundle(options?: DebugBundleExportOptions): Promise<DebugBundle>; |
| 292 | |
| 293 | /** |
| 294 | * Export the debug bundle as UTF-8 JSON bytes. |
| 295 | */ |
| 296 | exportBundleBytes(options?: DebugBundleExportOptions): Promise<Uint8Array>; |
| 297 | |
| 298 | /* --- High-level Features --- */ |
| 299 | |
| 300 | /** |
| 301 | * Frame inspector for analyzing frame history. |
| 302 | */ |
no outgoing calls
no test coverage detected