import Field from './Field'; import { BooleanFieldContract } from '@tensei/core'; export declare class BooleanField extends Field implements BooleanFieldContract { private booleanConfig; component: { form: string; index: string; detail: string; }; /** * Instantiate a new field. Requires the name, * and optionally the corresponding database * field. This field if not provided will * default to the camel case version of * the name. */ constructor(name: string, databaseField?: string); trueLabel(value: string): this; falseLabel(value: string): this; positiveValues(values: any[]): this; serialize(): { trueLabel: string; falseLabel: string; positiveValues: (string | boolean)[]; name: string; sidebar: boolean; isVirtual: boolean; component: { form: string; index: string; detail: string; }; inputName: string; isSortable: boolean; isFilterable: boolean; description: string; rules: string[]; defaultValue: any; isNullable: boolean; isUnique: boolean; isSearchable: boolean; showOnIndex: boolean; showOnDetail: boolean; showOnUpdate: boolean; showOnCreation: boolean; updateRules: string[]; creationRules: string[]; hidden: boolean; showOnPanel: boolean; fieldName: string; camelCaseName: string; capsDatabasefieldName: string; databaseField: string; attributes: { [key: string]: string; }; selectOptions?: { label: string; value: string; }[] | undefined; defaultToNow?: boolean | undefined; isUnsigned?: boolean | undefined; isRelationshipField: boolean; camelCaseNamePlural: string; pascalCaseName: string; snakeCaseName: string; snakeCaseNamePlural: string; }; } export declare const boolean: (name: string, databaseField?: string | undefined) => BooleanField; export default BooleanField;