import type { FieldDictionary, FieldStates } from '../../types'; import type { FieldListConfig } from './baselist'; export interface DynamicList { fields: FieldDictionary[]; addItem(factoryArgument?: any): void; editItem(item: FieldStates, index: number): void; removeItem(index: number): void; removeItems(indicesToRemove: number[]): void; moveItem(fromIndex: number, toIndex: number): void; reset(): void; dirty: boolean; value: Item[]; defaultValue: Item[]; newDefaultValue(newDefaultItems: Item[]): void; } type FactoryFunction = (factoryArgument?: any) => Item | Item[]; export declare function useDynamicList(listOrConfig: FieldListConfig | Item[], fieldFactory: FactoryFunction, validationDependencies?: unknown[]): DynamicList; export {}; //# sourceMappingURL=dynamiclist.d.ts.map