import type { LevelCodeToolCall, LevelCodeToolOutput } from '@levelcode/common/tools/list';
import type { TrackEventFn } from '@levelcode/common/types/contracts/analytics';
import type { Logger } from '@levelcode/common/types/contracts/logger';
export declare const handleTaskCompleted: ({ previousToolCallFinished, trackEvent, userId, logger, agentTemplate, }: {
    previousToolCallFinished: Promise<any>;
    toolCall: LevelCodeToolCall<"task_completed">;
    trackEvent: TrackEventFn;
    userId: string | undefined;
    logger: Logger;
    agentTemplate: {
        name: string;
    };
}) => Promise<{
    output: LevelCodeToolOutput<"task_completed">;
}>;
