import { BuilderFieldType, FieldUpdate, FormField } from "../types.js";
interface UseFormFieldsProps {
    initialFields: FormField[];
    onChange?: (fields: FormField[]) => void;
}
export declare const useFormFields: ({ initialFields, onChange }: UseFormFieldsProps) => {
    formFields: FormField[];
    selectedFieldId: string | null;
    addField: (type: BuilderFieldType) => void;
    addFieldToSection: (sectionId: string, type: BuilderFieldType) => void;
    insertFieldBefore: (targetId: string, type: BuilderFieldType) => void;
    insertFieldAfter: (targetId: string, type: BuilderFieldType) => void;
    moveFieldToSection: (fieldId: string, targetSectionId: string) => void;
    removeField: (fieldId: string) => void;
    duplicateField: (fieldId: string) => void;
    updateField: (fieldId: string, updates: FieldUpdate) => void;
    moveFieldUp: (fieldId: string) => void;
    moveFieldDown: (fieldId: string) => void;
    setAllFields: (next: FormField[]) => void;
    resetForm: () => void;
    selectField: (fieldId: string | null) => void;
};
export {};
