import type { LTMilestone } from '../../types';
/**
 * Publish a milestone event. Called from handleCompletion (workflow
 * interceptor), ltCompleteTask (orchestrator activity), and the
 * activity interceptor's after phase.
 */
export declare function publishMilestoneEvent(params: {
    source: 'interceptor' | 'orchestrator' | 'activity';
    workflowId: string;
    workflowName: string;
    taskQueue: string;
    taskId?: string;
    activityName?: string;
    milestones: LTMilestone[];
    data?: Record<string, any>;
}): Promise<void>;
/**
 * Publish a task lifecycle event (created, started, completed, escalated, failed).
 */
export declare function publishTaskEvent(params: {
    type: 'task.created' | 'task.started' | 'task.completed' | 'task.escalated' | 'task.failed';
    source: string;
    workflowId: string;
    workflowName: string;
    taskQueue: string;
    taskId: string;
    originId?: string;
    status: string;
    milestones?: LTMilestone[];
    data?: Record<string, any>;
}): Promise<void>;
/**
 * Publish an escalation lifecycle event (created, resolved).
 */
export declare function publishEscalationEvent(params: {
    type: 'escalation.created' | 'escalation.resolved' | 'escalation.claimed' | 'escalation.released';
    source: string;
    workflowId: string;
    workflowName: string;
    taskQueue: string;
    taskId?: string;
    escalationId: string;
    originId?: string;
    status: string;
    data?: Record<string, any>;
}): Promise<void>;
/**
 * Publish an activity lifecycle event for YAML workflow steps.
 * Lightweight — no payload data, just progress signals.
 */
export declare function publishActivityEvent(params: {
    type: 'activity.started' | 'activity.completed' | 'activity.failed';
    workflowId: string;
    workflowName: string;
    taskQueue: string;
    activityName: string;
    data?: Record<string, any>;
}): Promise<void>;
/**
 * Publish a knowledge lifecycle event (stored, deleted).
 * Lightweight — no workflow context required since knowledge writes
 * happen both inside and outside workflows.
 */
export declare function publishKnowledgeEvent(params: {
    type: 'knowledge.stored' | 'knowledge.deleted';
    domain: string;
    key: string;
}): Promise<void>;
/**
 * Publish a file storage event (stored, deleted).
 * Includes rich metadata: path, name, extension, mime type, size.
 */
export declare function publishFileEvent(params: {
    type: 'file.stored' | 'file.deleted';
    path: string;
    size?: number;
    mime?: string;
}): Promise<void>;
/**
 * Publish an agent lifecycle event.
 */
export declare function publishAgentEvent(params: {
    type: 'agent.started' | 'agent.completed' | 'agent.failed' | 'agent.status_changed';
    agentId: string;
    agentName: string;
    status?: string;
    data?: Record<string, any>;
}): Promise<void>;
/**
 * Publish a workflow lifecycle event (started, completed, failed).
 */
export declare function publishWorkflowEvent(params: {
    type: 'workflow.started' | 'workflow.completed' | 'workflow.failed';
    source: string;
    workflowId: string;
    workflowName: string;
    taskQueue: string;
    taskId?: string;
    originId?: string;
    status: string;
    data?: Record<string, any>;
}): Promise<void>;
