/** * Copyright (c) 2019, WSO2 LLC. (https://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import { CheckboxField, CustomField, DropdownField, FilePickerField, FormButton, FormDivider, FormField, FormSubmit, PasswordField, QueryParamsField, RadioField, Reset, ScopesField, TextField, ToggleField } from "../../src"; /** * Type guard to check if an input element is a text field. * * @param toBeDetermined - Form field to be checked. */ export declare const isTextField: (toBeDetermined: FormField) => toBeDetermined is TextField | PasswordField; /** * Type guard to check if an input element is of the type Radio. * * @param toBeDetermined - Form field to be checked. */ export declare const isRadioField: (toBeDetermined: FormField) => toBeDetermined is RadioField; /** * Type guard to check if an input element is of the type Password. * * @param toBeDetermined - Form field to be checked. */ export declare const isPasswordField: (toBeDetermined: FormField) => toBeDetermined is PasswordField; /** * Type guard to check if an input element is of the type Dropdown. * * @param toBeDetermined - Form field to be checked. */ export declare const isDropdownField: (toBeDetermined: FormField) => toBeDetermined is DropdownField; /** * Type guard to check if an input element is of the type Checkbox. * * @param toBeDetermined - Form field to be checked. */ export declare const isCheckBoxField: (toBeDetermined: FormField) => toBeDetermined is CheckboxField; /** * Type guard to check if an input element is of the type Scopes. * * @param toBeDetermined - Form field to be checked. */ export declare const isScopesField: (toBeDetermined: FormField) => toBeDetermined is ScopesField; /** * Type guard to check if an input element is of the type Query Parameters. * * @param toBeDetermined - Form field to be checked. */ export declare const isQueryParamsField: (toBeDetermined: FormField) => toBeDetermined is QueryParamsField; /** * Type guard to check if an input element is of the type Query Parameters. * * @param toBeDetermined - Form field to be checked. */ export declare const isFilePickerField: (toBeDetermined: FormField) => toBeDetermined is FilePickerField; /** * Type guard to check if an input element is of the type Toggle. * * @param toBeDetermined - Form field to be checked. */ export declare const isToggleField: (toBeDetermined: FormField) => toBeDetermined is ToggleField; /** * Type guard to check if an input element is of the type Submit. * * @param toBeDetermined - Form field to be checked. */ export declare const isSubmitField: (toBeDetermined: FormField) => toBeDetermined is FormSubmit; /** * Type guard to check if an input element is of the type Reset. * * @param toBeDetermined - Form field to be checked. */ export declare const isResetField: (toBeDetermined: FormField) => toBeDetermined is Reset; /** * Type guard to check if an input element is of the type Button. * * @param toBeDetermined - Form field to be checked. */ export declare const isButtonField: (toBeDetermined: FormField) => toBeDetermined is FormButton; /** * Type guard to check if an input element is of the type Divider. * * @param toBeDetermined - Form field to be checked. */ export declare const isDivider: (toBeDetermined: FormField) => toBeDetermined is FormDivider; /** * Type guard to check if an input element is of the type Custom. * * @param toBeDetermined - Form field to be checked. */ export declare const isCustomField: (toBeDetermined: FormField) => toBeDetermined is CustomField; /** * Checks if the field is an input/checkbox/dropdown/radio/password field. * * @param toBeDetermined - Form field to be checked. */ export declare const isInputField: (toBeDetermined: FormField) => toBeDetermined is TextField | PasswordField | RadioField | DropdownField | CheckboxField | ToggleField;