/** * Early log capture — split out from server.ts to avoid pulling in the entire * API server dependency graph when only the log-buffer bootstrap is needed * (e.g. during headless `startEliza()`). * * @module api/early-logs */ export interface EarlyLogEntry { timestamp: number; level: string; message: string; source: string; tags: string[]; } /** * Start capturing logs from the global @elizaos/core logger before the API * server is up. Call this once, early in the startup flow (e.g. before * `startEliza`). When `startApiServer` runs it will flush and take over. */ export declare function captureEarlyLogs(): void; /** * Drain the early log buffer and clean up the early logger patch. * Called by `startApiServer` to flush buffered entries into the main log * buffer, then hand control to the server's own logger patch. * * Returns the buffered entries (empty array if none). */ export declare function flushEarlyLogs(): EarlyLogEntry[]; //# sourceMappingURL=early-logs.d.ts.map