import type { StorePaths } from "../store.js"; import type { ChorusJobStore } from "../jobs.js"; import type { PiLikeContext } from "../pi-context.js"; import { runChorus } from "../chorus.js"; export interface JobsCommandContext { storePaths?: StorePaths; chorusJobStore?: ChorusJobStore; modelRegistry?: PiLikeContext["modelRegistry"]; cwd?: string; signal?: AbortSignal; resumeRun?: typeof runChorus; ui?: { show?: (content: string) => void; notify?: (content: string, level?: "info" | "warning" | "error") => void; custom?: (factory: (tui: { requestRender?: () => void; }, theme: { fg?: (color: string, text: string) => string; bold?: (text: string) => string; }, keybindings: unknown, done: (result: T) => void) => { render(width: number): string[]; handleInput(data: unknown): void; invalidate?: () => void; }) => Promise; }; } export declare function handleJobs(ctx: JobsCommandContext): Promise; export declare function handleJob(ctx: JobsCommandContext, rawArgs: string): Promise; export declare function handleWatch(ctx: JobsCommandContext, rawArgs: string): Promise; export declare function handleCancel(ctx: JobsCommandContext, rawArgs: string): Promise; export declare function handleResume(ctx: JobsCommandContext, rawArgs: string): Promise;