import { type FieldValueProvider } from "./field-values.js"; import type { Driver } from "./types.js"; export interface FormDriverOptions { /** Value provider for each field. Default: `defaultValueProvider()`. */ valueProvider?: FieldValueProvider; /** * How to commit the form. `auto` tries a submit button first, then * pressing Enter inside the first text field. Default: `auto`. */ submitStrategy?: "auto" | "click-submit" | "press-enter" | "no-submit"; /** * Skip when the page has no form. Default: true. Set false to make * the driver explicit-only (returns null instead of skip when no form). */ deferWhenNoForm?: boolean; /** Max fields to fill per form. Avoids enormous forms eating the step. Default: 20. */ maxFieldsPerForm?: number; /** Optional CSS scope; only consider forms matching this selector. */ formSelector?: string; name?: string; } export declare function formDriver(opts?: FormDriverOptions): Driver; //# sourceMappingURL=form-driver.d.ts.map