import type { Diagnostic } from "@codemirror/lint";
import type { UseTaskKindRegistryReturn } from "./useTaskKindRegistry";
/** Return value of {@link useWorkflowValidation}. */
export interface UseWorkflowValidationReturn {
    /** CodeMirror-compatible diagnostics mapped to source positions. */
    readonly diagnostics: readonly Diagnostic[];
}
/**
 * Behavior hook that validates workflow YAML and produces CodeMirror diagnostics.
 *
 * The pipeline runs entirely client-side with 150ms debounce:
 * 1. YAML syntax check (parse errors)
 * 2. Structural validation (required fields: document, tasks)
 * 3. Per-task kind validation (known kinds, required task fields)
 * 4. Task config schema validation (against TaskKindRegistry JSON schemas)
 * 5. Reference validation (flow.then targets, duplicate task names)
 *
 * Each diagnostic is source-mapped to exact character positions using the
 * `yaml` library's CST range information.
 *
 * @param yaml - The current YAML content string.
 * @param registry - The task kind registry for schema validation.
 *
 * @since T10 (YAML Editor with Graph Preview)
 */
export declare function useWorkflowValidation(yaml: string, registry: UseTaskKindRegistryReturn | null): UseWorkflowValidationReturn;
//# sourceMappingURL=useWorkflowValidation.d.ts.map