/**
 * One job in a session's widget registry: its text sources, its derivation runtime (replaced by a
 * fresh one whenever a spec is installed), and where its spec request stands. A job joins the
 * session's `job_widget_state` once its first spec request starts; before that its row is plain.
 */
import type { JobWidgetRedactor } from "./author-redact.ts";
import type { JobWidgetBrief, JobWidgetJobKind } from "./author-types.ts";
import type { LineMatcher } from "./matcher.ts";
import type { JobWidgetRequestOutcome } from "./request-controller.ts";
import type { JobWidgetRequestJob } from "./request-policy.ts";
import { JobWidgetRuntime } from "./runtime.ts";
import type { JobTextSource } from "./source-types.ts";
import type { JobWidgetEntry } from "./view-types.ts";
/** What a host says about a job when it registers it; the kind lives beside the brief, not in it. */
export type JobWidgetBriefText = Omit<JobWidgetBrief, "kind">;
export interface JobWidgetJobInput {
    /** `bash_id` or `st_` task id; unique within the session. */
    readonly id: string;
    readonly kind: JobWidgetJobKind;
    readonly sources: readonly JobTextSource[];
    readonly brief: JobWidgetBriefText;
    /** When the job started; its age gates the first spec request. Defaults to now. */
    readonly startedAtMs?: number;
}
export declare class JobWidgetJob implements JobWidgetRequestJob {
    #private;
    readonly id: string;
    readonly kind: JobWidgetJobKind;
    readonly startTime: number;
    readonly sources: readonly JobTextSource[];
    brief: JobWidgetBrief;
    runtime: JobWidgetRuntime;
    settled: boolean;
    constructor(input: JobWidgetJobInput, matcher: LineMatcher, redact: JobWidgetRedactor);
    ingest(): void;
    requestStarted(): void;
    requestSettled(outcome: JobWidgetRequestOutcome): void;
    entry(): JobWidgetEntry | undefined;
}
//# sourceMappingURL=registry-job.d.ts.map