import { verifyGhProject, type TaskList } from "../../../task-list/dist/index.js"; import type { ResolvedConfig } from "./schema.js"; type JsonRecord = Record; export type DispatchPreflightCode = "missing_tasks_config" | "tasks_unreachable" | "no_active_states" | "no_terminal_states" | "unknown_initial_state" | "list_not_found" | "board_not_provisioned"; export type DispatchValidationResult = { ok: true; } | { ok: false; code: "missing_tasks_config"; } | { ok: false; code: "tasks_unreachable"; } | { ok: false; code: "no_active_states"; } | { ok: false; code: "no_terminal_states"; } | { ok: false; code: "unknown_initial_state"; state: string; } | { ok: false; code: "list_not_found"; list: string; } | { ok: false; code: "board_not_provisioned"; report: Awaited>; }; export declare function validateStateDefinitions(value: unknown): asserts value is Record | Map; export declare function validateDispatch(cfg: ResolvedConfig, taskList: Pick): Promise; export {};