export type ServerToolRuntimeState = { enabled: boolean; updatedAtMs: number; updatedBy: string; }; export type ServerToolLogDetail = { ts: string; requestId: string; flowId: string; tool: string; stage: string; result: string; message: string; status: 'success' | 'failure' | 'running' | 'info'; entryEndpoint?: string; providerProtocol?: string; }; export type ServerToolToolStats = { tool: string; executions: number; success: number; failure: number; lastSeenTs?: string; }; export type ServerToolStatsSnapshot = { logPath: string; logExists: boolean; scannedLines: number; executions: number; success: number; failure: number; byTool: ServerToolToolStats[]; recent: ServerToolLogDetail[]; }; export declare function getServerToolRuntimeState(): ServerToolRuntimeState; export declare function isServerToolEnabled(): boolean; export declare function setServerToolEnabled(enabled: boolean, updatedBy?: string): ServerToolRuntimeState; export declare function logServerToolFiring(message: string, sessionId?: string): void; export declare function readServerToolStatsSnapshot(options?: { maxLines?: number; maxTailBytes?: number; recentLimit?: number; }): ServerToolStatsSnapshot;