import { Field } from '../types'; import { FieldSettings } from './types'; /** * Keeps the list of fields. Toggles the visibility of the namespace field based on currently used namspace. * * User settings support: * 1. fields are loaded from user settings only during intialization * 2. saving fields to user settings is a side effect * 3. internal state maintained by the hook remains the single source of truth * * @param currentNamespace * @param defaultFields used for initialization * @param userSettings * @returns [fields, setFields] */ export declare const useFields: (currentNamespace: string, defaultFields: Field[], userSettings?: FieldSettings) => [Field[], React.Dispatch>];