import { BaseResourceComponent, NavigationService } from '@memberjunction/ng-shared';
import { ResourceData } from '@memberjunction/core-entities';
import { FilterFieldConfig } from '@memberjunction/ng-ui-components';
import { HistoryRecordOpenedEventArgs, RoutineCounts, RoutineStatusFilter, UserRoutinesView } from '@memberjunction/ng-user-routines';
import * as i0 from "@angular/core";
/**
 * Routines app — full-page Explorer host for the User Routines command center
 * (list / create-edit / run history). Thin chrome-trio wrapper over the generic
 * `<mj-user-routines-command-center>` from `@memberjunction/ng-user-routines`.
 *
 * Query-param round trip: `routine=<id>` opens that routine's history view; the pair
 * `initial read` + `OnQueryParamsChanged` keeps deep links, Home pins, and
 * back/forward working on cached instances.
 *
 * 🚨 SAFETY BOUNDARY 🚨 (see user-routines-agent-context.ts for the full statement)
 * Agent tools here are navigation / filter / search / select / refresh ONLY. The
 * agent may OPEN the editor (CreateRoutine / OpenRoutineEditor) but can never save,
 * delete, pause/resume, or run-now a routine — those stay human-driven in the UI.
 */
export declare class UserRoutinesResourceComponent extends BaseResourceComponent {
    protected navigationService: NavigationService;
    private commandCenter?;
    SearchText: string;
    StatusFilter: RoutineStatusFilter;
    TotalCount: number;
    FilteredCount: number;
    ActiveView: UserRoutinesView;
    SelectedRoutineID: string | null;
    readonly FilterFields: FilterFieldConfig[];
    FilterValues: Record<string, unknown>;
    get ActiveFilterCount(): number;
    ngOnInit(): Promise<void>;
    GetResourceDisplayName(_data: ResourceData): Promise<string>;
    GetResourceIconClass(_data: ResourceData): Promise<string>;
    /** 2) React to later query-param changes (back/forward, pins, cached re-focus). */
    protected OnQueryParamsChanged(params: Record<string, string>, _source: 'popstate' | 'deeplink'): void;
    OnSelectedRoutineIDChange(routineId: string | null): void;
    OnViewChanged(view: UserRoutinesView): void;
    OnCountsChanged(counts: RoutineCounts): void;
    /** Opens the linked execution record (Agent Run / Prompt Run / Action Log) in a tab. */
    OnHistoryRecordOpened(args: HistoryRecordOpenedEventArgs): void;
    OnSearchChange(value: string): void;
    OnFilterValuesChange(values: Record<string, unknown>): void;
    ResetFilters(): void;
    NewRoutine(): void;
    BackToList(): void;
    RefreshData(): Promise<void>;
    private publishAgentContext;
    private routineRows;
    private registerAgentTools;
    private handleSearch;
    private handleStatusFilter;
    private handleSelect;
    private handleEdit;
    static ɵfac: i0.ɵɵFactoryDeclaration<UserRoutinesResourceComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<UserRoutinesResourceComponent, "mj-user-routines-resource", never, {}, {}, never, never, false, never>;
}
/** Tree-shaking prevention — referenced from the package public API. */
export declare function LoadUserRoutinesResource(): void;
//# sourceMappingURL=user-routines-resource.component.d.ts.map