/** Event type priority tiers for filtering. Higher tiers surface more important events. */
export declare const PRIORITY: Record<string, string[]>;
/**
 * Collapse sequential events of the same type into summary entries.
 * Returns a cleaner list of events suitable for output.
 */
export declare function collapseEvents(events: any[], maxEvents?: number): any[];
/**
 * Get a breakdown of tool calls by type.
 */
export declare function getToolBreakdown(events: any[]): Record<string, number>;
/** Group consecutive events of the same type into combined entries with counts and truncated content. */
export declare function groupAndFlattenEvents(events: any[]): any[];
/** Accumulated summary of an agent's activity: files touched, tools used, errors, and final message. */
export declare class AgentSummary {
    agentId: string;
    agentType: string;
    status: string;
    duration: string | null;
    filesModified: Set<string>;
    filesCreated: Set<string>;
    filesRead: Set<string>;
    filesDeleted: Set<string>;
    toolsUsed: Set<string>;
    toolCallCount: number;
    bashCommands: string[];
    errors: string[];
    warnings: string[];
    finalMessage: string | null;
    eventCount: number;
    lastActivity: string | null;
    eventsCache: any[];
    constructor(agentId: string, agentType: string, status: string, duration?: string | null, eventCount?: number);
    toDict(detailLevel?: 'brief' | 'standard' | 'detailed'): any;
    private truncate;
}
/** Build an AgentSummary by walking all events and accumulating file ops, tool calls, errors, and messages. */
export declare function summarizeEvents(agentId: string, agentType: string, status: string, events: any[], duration?: string | null): AgentSummary;
/**
 * Compute the delta of new activity since a given point in time (ISO timestamp)
 * or event index. Used for incremental status polling.
 */
export declare function getDelta(agentId: string, agentType: string, status: string, events: any[], since?: string | number): any;
/** Filter events to only those in the specified priority tiers (defaults to critical + important). */
export declare function filterEventsByPriority(events: any[], includeLevels?: string[] | null): any[];
/** Return the event type of the last tool-related or significant event, or null. */
export declare function getLastTool(events: any[]): string | null;
/** Lightweight status snapshot with counts, recent commands, and error flag. */
export interface QuickStatus {
    agent_id: string;
    agent_type: string;
    status: string;
    files_created: number;
    files_modified: number;
    files_deleted: number;
    files_read: number;
    tool_count: number;
    last_commands: string[];
    has_errors: boolean;
    last_message: string | null;
}
/** Extract all tool_use events as {tool, args} pairs. */
export declare function getToolUses(events: any[]): Array<{
    tool: string;
    args: any;
}>;
/** Extract the last N complete messages from the event stream, joining streaming deltas. */
export declare function getLastMessages(events: any[], count?: number): string[];
/** Build a lightweight QuickStatus snapshot from agent events. */
export declare function getQuickStatus(agentId: string, agentType: string, status: string, events: any[]): QuickStatus;
/** Produce a one-line human-readable status summary string (e.g. "Running, modified 3 files, used bash 5 times"). */
export declare function getStatusSummary(agentId: string, agentType: string, status: string, events: any[], duration?: string | null): string;
