import { BaseFieldConfig } from '@xh/hoist/cmp/form/field/BaseFieldModel'; import { AppOptionSpec } from '@xh/hoist/core'; /** * Options specification for the app-wide options dialog. * * Option can be sourced from / set to a preference via the `prefName` config. Alternatively, * the `valueGetter` and `valueSetter` config functions allow for custom handling if required. * * Apps will typically specify AppOption configurations in HoistAppModel.getAppOptions(). Implement * this method and return one or more AppOption configs to enable the Options menu option in the * primary AppBar menu. */ export declare class AppOption { name: string; prefName: string; fieldModel: Omit; formField: any; valueGetter: () => any; valueSetter: (s: any) => any; reloadRequired: boolean; refreshRequired: boolean; constructor({ name, prefName, formField, fieldModel, valueGetter, valueSetter, reloadRequired, refreshRequired }: AppOptionSpec); getValueAsync(): Promise; setValueAsync(value: any): Promise; }