import type { PartnerState } from '../domain.js'; import type { BoardTask } from '../tasks/domain.js'; import { type PartnerDelegation } from './domain.js'; /** Pure checks shared by automatic submission and explicit delegation. */ export declare function taskDependenciesDone(task: BoardTask, tasks: readonly BoardTask[]): boolean; export declare function taskDispatchDenied(state: PartnerState, item: PartnerDelegation): string | undefined; export declare function autoRunCandidates(state: PartnerState): BoardTask[]; export declare function taskDelegation(task: BoardTask, input: { initiatedBy: 'user' | 'companion'; fromCompanionId?: string; to: string; request: string; parentSessionId?: string; }): PartnerDelegation; /** Never evict queued/running work to make room for new requests. */ export declare function appendDelegation(state: PartnerState, item: PartnerDelegation): void; export declare function pendingTaskDelegation(state: PartnerState, taskId: string): PartnerDelegation | undefined; //# sourceMappingURL=task-dispatch.d.ts.map