import type { Dispatch } from '@reduxjs/toolkit';
import type { NavigatorContext } from '../../../../../app/navigator-context-provider.js';
import { type StateNeededForHeadAnswerParams } from '../../../../../features/generated-answer/generated-answer-request.js';
/**
 * Creates an AnswerRunner responsible for executing and managing
 * the lifecycle of an AnswerAgent.
 *
 * The runner ensures that only one agent runs at a time.
 * If a new run is triggered, any currently running agent is aborted.
 */
export declare const createAnswerRunner: () => {
    run: (state: StateNeededForHeadAnswerParams, dispatch: Dispatch, getNavigatorContext: () => NavigatorContext) => Promise<void>;
    abortRun: () => void;
};
