import type { AgentSkillAnalytics } from "@rudderhq/shared";
import { type BudgetEnforcementScope } from "../budgets.js";
export { prioritizeProjectWorkspaceCandidatesForRun, type ResolvedWorkspaceForRun } from "../agent-run-context.js";
export declare function createHeartbeatMiscHandlers(context: any): {
    resumeDeferredWakeupsForAgent: (agentId: string) => Promise<{
        replayed: number;
        wakeupRequestIds: string[];
    }>;
    listProjectScopedRunIds: (orgId: string, projectId: string) => Promise<any>;
    listProjectScopedWakeupIds: (orgId: string, projectId: string) => Promise<any>;
    cancelPendingWakeupsForBudgetScope: (scope: BudgetEnforcementScope) => Promise<number>;
    cancelRunInternal: (runId: string, reason?: string) => Promise<any>;
    cancelActiveForAgentInternal: (agentId: string, reason?: string) => Promise<any>;
    cancelBudgetScopeWork: (scope: BudgetEnforcementScope) => Promise<void>;
    retryRunInternal: (runId: string, opts?: {
        requestedByActorType?: WakeupOptions["requestedByActorType"];
        requestedByActorId?: string | null;
        now?: Date;
    }) => Promise<any>;
    buildSkillAnalytics: (scope: {
        orgId: string;
        agentId?: string;
    }, opts?: {
        windowDays?: number;
        now?: Date;
        startDate?: string;
        endDate?: string;
    }) => Promise<AgentSkillAnalytics>;
};
//# sourceMappingURL=heartbeat.misc.d.ts.map