import type { Clark } from "../../state-machine/clark-fsm.js";
import type { ClarkStateHandlerParams } from "../../state-machine/clark-fsm.js";
/**
 * Console log entries include:
 * - id: unique identifier for the log entry
 * - timestamp: when the log was created (milliseconds since epoch)
 * - timeAgo: human-readable relative time (e.g., "2 minutes ago", "just now")
 * - level: log level (log/info/debug/warn/error)
 * - message: the logged message (objects are JSON stringified)
 * - stack: stack trace
 * - generationTimestamp: ISO timestamp of when log was captured
 *
 * API run records (controlled by includeApiRuns flag):
 * - Light mode (default): Only includes small predictable fields:
 *   - apiId, id, callId, timestamp, timeAgo, statusCode, timeTaken, isTestRun, loading
 * - Full mode: Includes additional fields based on flags:
 *   - inputs: Input parameters used (includeApiInputs)
 *   - response: API response data (includeApiResponse)
 *   - error: Error message if execution failed (includeApiError)
 *   - stepLogs: Per-step execution details (includeStepOutputs, includeStepLogs):
 *     - stepName: Name of the step (e.g., "Step1", "GetUsers")
 *     - stdout: Array of console.log output (includeStepLogs)
 *     - stderr: Array of console.error output (includeStepLogs)
 *     - error: Step error message (includeStepLogs)
 *     - output: The step's return value (includeStepOutputs)
 *
 * Returns:
 * - consoleLogs: Array of console log entries (most recent first)
 * - apiRuns: Array of API run records (most recent first, empty if feature flag disabled)
 * - consoleLogCount: Number of console logs returned
 * - apiRunCount: Number of API runs returned
 * - totalConsoleLogCount: Total number of console logs in buffer
 * - totalApiRunCount: Total number of API runs in buffer
 */
export declare const buildGetLogsToolFactory: import("../tools2/types.js").ToolFactory<{
    clark: Clark;
    services: ClarkStateHandlerParams;
}, import("../tools2/types.js").Tool<{
    prefix?: string | undefined;
    limit?: number | undefined;
    level?: "debug" | "info" | "warn" | "error" | "log" | undefined;
    apiId?: string | undefined;
    fullContent?: boolean | undefined;
    maxMessageLength?: number | undefined;
    apiRunLightMode?: boolean | undefined;
    includeApiInputs?: boolean | undefined;
    includeApiResponse?: boolean | undefined;
    includeApiError?: boolean | undefined;
    includeStepOutputs?: boolean | undefined;
    includeStepLogs?: boolean | undefined;
    includeApiDiagnostics?: boolean | undefined;
    onlyApiRuns?: boolean | undefined;
    apiRunLimit?: number | undefined;
}, {
    apiRuns?: Record<string, unknown>[] | undefined;
    apiRunCount?: number | undefined;
    totalApiRunCount?: number | undefined;
    consoleLogs: {
        id: string;
        timestamp: number | undefined;
        timeAgo: string;
        level: "debug" | "info" | "warn" | "error" | "log";
        message: string;
        messageTruncated: boolean;
        messageOriginalLength: number | undefined;
        stack: string | undefined;
        stackTruncated: boolean | undefined;
        generationTimestamp: string | undefined;
    }[];
    consoleLogCount: number;
    totalConsoleLogCount: number;
    truncatedCount: number;
}>>;
//# sourceMappingURL=get-logs.d.ts.map