import type { RunAgentOptions } from '../../../agents/types.js';
import type { PartDefinition, PartResult, WorkflowStep, WorkflowResumePointEntry } from '../../models/types.js';
import type { RuntimeStepResolution } from '../types.js';
import type { OptionsBuilder } from './OptionsBuilder.js';
import type { ParallelLogger } from './parallel-logger.js';
export interface TeamLeaderPartObservability {
    readonly enabled: boolean;
    readonly runId?: string;
    readonly workflowName: string;
    readonly iteration: number;
    readonly workflowStack?: WorkflowResumePointEntry[];
    readonly sanitizeText?: (text: string) => string;
}
export declare function runTeamLeaderPart(optionsBuilder: OptionsBuilder, step: WorkflowStep, leaderWorkflowMeta: RunAgentOptions['workflowMeta'] | undefined, part: PartDefinition, partIndex: number, defaultTimeoutMs: number, updatePersonaSession: (persona: string, sessionId: string | undefined) => void, parallelLogger: ParallelLogger | undefined, observability: TeamLeaderPartObservability, runtime?: RuntimeStepResolution): Promise<PartResult>;
export declare function buildTeamLeaderErrorPartResult(step: WorkflowStep, part: PartDefinition, error: unknown, abortSignal?: AbortSignal): PartResult;
//# sourceMappingURL=team-leader-part-runner.d.ts.map