import Field from './Field';
/**
* Field for Boolean type values. Value can either be `true` or `false` - if
* you need an indeterminate state set the `blank` option to true.
*
* This class accepts all the props of [Field](doc:Field).
*
*
* Use with [viewModelFactory](doc:viewModelFactory).
*
* ```js
* viewModelFactory({
* id: new Field(),
* isActive: new BooleanField(),
* }, { pkFieldName: 'id' });
* ```
*
* Optionally provide any options from [Field](doc:Field):
*
* ```js
* viewModelFactory({
* id: new Field(),
* isActive: new BooleanField({
* helpText: 'Is this user active?',
* }),
* }, { pkFieldName: 'id' });
* ```
*
*
*
* @extractdocs
* @menugroup Fields
*/
export default class BooleanField extends Field {
static fieldClassName: string;
/**
* If `blank` is `true` then `null` or `undefined` will be parsed to `null`.
*
* Otherwise, any falsy value will be converted to `false`, any truthy value `true`.
*
* @param value The value to parse
*/
parse(value: any): boolean | null;
}