import { type ReactNode } from 'react'; import type { LintFix } from '../editing.js'; /** A linter problem inside what a dialog edits; `at` is its path from there, such as ['run']. */ export interface ScopedProblem { at: (string | number)[]; message: string; fix?: LintFix | undefined; } /** Hands a form's fields the problems at the keys they set. */ export declare function FieldProblems({ problems, children, }: { problems: ScopedProblem[]; children: ReactNode; }): import("react").JSX.Element; /** Where the fields inside sit, such as `ssh` for a remote host's fields. */ export declare function LintScope({ at, children }: { at: string; children: ReactNode; }): import("react").JSX.Element; /** The problems at the field with id `id`, which sets `key`; the dialog's list then leads to it. */ export declare function useFieldProblems(key: string | undefined, id: string): ScopedProblem[]; /** A field's problems as one message, and the buttons that make their likely fixes. */ export declare function useFieldLint(key: string | undefined, id: string, value: string, onChange: (value: string) => void): { message: string | undefined; fixes: ReactNode; }; export declare function FixButtons({ fixes, onFix }: { fixes: LintFix[]; onFix: (fix: LintFix) => void; }): import("react").JSX.Element | null; export declare function ProblemList({ problems }: { problems: ScopedProblem[]; }): import("react").JSX.Element | null;