import { OnInit, OnDestroy } from '@angular/core';
import { MJAIAgentRunEntityExtended, MJAIAgentEntityExtended } from '@memberjunction/ai-core-plus';
import { TimelineItem, AIAgentRunTimelineComponent } from './ai-agent-run-timeline.component';
import { MJAIAgentRunFormComponent } from '../../generated/Entities/MJAIAgentRun/mjaiagentrun.form.component';
import { AIAgentRunAnalyticsComponent } from './ai-agent-run-analytics.component';
import { AIAgentRunVisualizationComponent } from './ai-agent-run-visualization.component';
import { AgentRunCostMetrics } from './ai-agent-run-cost.service';
import { AIAgentRunDataHelper } from './ai-agent-run-data.service';
import * as i0 from "@angular/core";
export declare class MJAIAgentRunFormComponentExtended extends MJAIAgentRunFormComponent implements OnInit, OnDestroy {
    record: MJAIAgentRunEntityExtended;
    private destroy$;
    activeTab: string;
    selectedTimelineItem: TimelineItem | null;
    jsonPanelExpanded: boolean;
    loading: boolean;
    error: string | null;
    analyticsLoaded: boolean;
    visualizationLoaded: boolean;
    agent: MJAIAgentEntityExtended | null;
    costMetrics: AgentRunCostMetrics | null;
    private _cachedParsedResult;
    private _cachedParsedStartingPayload;
    private _cachedParsedFinalPayload;
    private _cachedParsedData;
    private _allParsingComplete;
    timelineComponent?: AIAgentRunTimelineComponent;
    analyticsComponent?: AIAgentRunAnalyticsComponent;
    visualizationComponent?: AIAgentRunVisualizationComponent;
    private navigationService;
    private costService;
    private appManager;
    dataHelper: AIAgentRunDataHelper;
    ngOnInit(): Promise<void>;
    ngOnDestroy(): void;
    private loadAgent;
    private loadCostMetrics;
    changeTab(tab: string): void;
    calculateDuration(start: Date, end?: Date | null): string;
    selectTimelineItem(item: TimelineItem): void;
    closeJsonPanel(): void;
    navigateToSubRun(runId: string): void;
    navigateToParentRun(): void;
    navigateToActionLog(logId: string): void;
    openEntityRecord(entityName: string, recordId: string | null): void;
    navigateToEntityRecord(event: {
        entityName: string;
        recordId: string;
    }): void;
    /**
     * Navigate to the conversation in the Chat application
     */
    navigateToConversation(): void;
    refreshData(): void;
    getStatusIcon(status: string): string;
    copyToClipboard(text: string): Promise<void>;
    onAgentRunCompleted(status: string): void;
    /**
     * Get the Result field with recursive JSON parsing applied
     */
    get parsedResult(): string;
    /**
     * Get the Starting Payload field with recursive JSON parsing applied
     */
    get parsedStartingPayload(): string;
    /**
     * Get the Final Payload (state) field with recursive JSON parsing applied
     */
    get parsedFinalPayload(): string;
    /**
     * Get the Data field with recursive JSON parsing applied
     */
    get parsedData(): string;
    /**
     * Get parsed Starting Payload as an object for deep diff
     */
    get startingPayloadObject(): any;
    /**
     * Get parsed Final Payload as an object for deep diff
     */
    get finalPayloadObject(): any;
    /**
     * Clear all cached parsed results
     */
    private clearParsedCache;
    /**
     * Parse all JSON fields at once and cache results
     */
    private parseAllFields;
    /**
     * Check if all parsing is complete - used by template
     */
    get isParsingComplete(): boolean;
    /**
     * Check if we have both payloads to show diff
     */
    get showPayloadDiff(): boolean;
    /**
     * Check if selected timeline item is a step with payload changes
     */
    get showStepPayloadDiff(): boolean;
    /**
     * Get parsed PayloadAtStart for the selected step
     */
    get stepPayloadAtStartObject(): any;
    /**
     * Get parsed PayloadAtEnd for the selected step
     */
    get stepPayloadAtEndObject(): any;
    static ɵfac: i0.ɵɵFactoryDeclaration<MJAIAgentRunFormComponentExtended, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<MJAIAgentRunFormComponentExtended, "mj-ai-agent-run-form", never, {}, {}, never, never, false, never>;
}
//# sourceMappingURL=ai-agent-run.component.d.ts.map