/**
 * Task Engine - Simplified Version
 *
 * Task implementation for LLM orchestration.
 * Provides meta-cognition and thought delays on top of ensemble.
 * Model rotation is handled by ensemble automatically.
 */
import { type Agent, type ResponseInput, type ProviderStreamEvent } from '@just-every/ensemble';
/**
 * Run Mind with automatic everything
 *
 * @param agent - The agent from ensemble
 * @param content - The task/prompt to execute
 * @returns AsyncGenerator that yields all ProviderStreamEvents
 *
 * @example
 * ```typescript
 * import { Agent } from '@just-every/ensemble';
 * import { runTask } from '@just-every/task';
 *
 * const agent = new Agent({
 *     name: 'MyAgent',
 *     modelClass: 'reasoning'
 * });
 *
 * for await (const event of runTask(agent, 'Analyze this code')) {
 *     console.log(event);
 * }
 * ```
 */
export declare function runTask(agent: Agent, content: string): AsyncGenerator<ProviderStreamEvent>;
/**
 * Add a message to an active task's message stream
 *
 * @param taskGenerator - The generator returned by runTask
 * @param message - The message to inject
 *
 * @example
 * ```typescript
 * const task = runTask(agent, 'Analyze this code');
 *
 * // Inject a message while task is running
 * addMessageToTask(task, {
 *     type: 'message',
 *     role: 'developer',
 *     content: 'Focus on performance issues'
 * });
 * ```
 */
export declare function addMessageToTask(taskGenerator: AsyncGenerator<ProviderStreamEvent>, message: ResponseInput[0]): void;
//# sourceMappingURL=engine.d.ts.map