export type BackStateType = { _id: string; isModal?: boolean; isOffcanvas?: boolean; listener: (state: BackStateType) => void; data?: any; }; export declare enum PeriodEnum { TODAY = 1, TOMORROW = 2, YESTERDAY = 3, THIS_WEEK = 4, LAST_WEEK = 5, NEXT_WEEK = 6, THIS_MONTH = 7, LAST_MONTH = 8, NEXT_MONTH = 9, THIS_YEAR = 10, LAST_YEAR = 11, NEXT_YEAR = 12 } export type FirestoreTimestamp = { seconds: number; nanoseconds: number; }; export type GeoInfoType = { /** * Logitude of the requested machine address. */ longitude?: string; /** * Latitude of the requested machine address. */ latitude?: string; /** * Continent of the requested machine address. */ continent?: string; /** * Country of the requested machine address. */ country?: string; /** * TimeZone of the requested machine address. */ timezone?: string; /** * City name of the requested machine address. */ city?: string; /** * Region name of the requested machine address. */ region?: string; /** * Region Code of the requested machine address. */ regionCode?: string; /** * Organization of the requested machine address. */ asOrganization?: string; /** * Postal Code of the requested machine address. */ postalCode?: string; }; export type MenuType = { /** * Label of the menu item */ label?: string; /** * URL link of the menu item */ url?: string; /** * Use this url paths to determine whether the current menu is active or not active. */ urlPaths?: string | string[]; /** * Icon svg path data */ iconPath?: SVGPath; /** * Icon color. */ iconColor?: string; /** * Define the icon size. default : 24px */ iconSize?: string; /** * Is menu item disabled */ disabled?: boolean; /** * Open in new Tab, when click on url */ openInTab?: boolean; /** * Is the item will be a divider */ divider?: boolean; click?: (action: MenuType) => void; }; export type MdiIconType = { n: string; p: string; }; export type ModalSizeType = 'sm' | 'md' | 'lg'; export type DialogType = { dialogComponent?: any; customComponent?: any; props: { [key: string]: any; }; modalId?: String; hide?: boolean; isFullScreen?: boolean; modalSize?: ModalSizeType; scrollable?: boolean; contentStyle?: string; okText?: string; cancelText?: string; okBtnClass?: string; cancelBtnClass?: string; okBtnStyle?: string; cancelBtnStyle?: string; cancelable?: boolean; backdropClass?: string; onResult?: (res: any) => void; }; export type FormFieldTypes = 'text' | 'textarea' | 'number' | 'email' | 'password' | 'date' | 'time' | 'datetime' | 'location' | 'color' | 'quill' | 'image' | 'phone' | 'checkbox' | 'radio' | 'file' | 'dropdown' | 'html' | 'component'; export type FormControlsType = { [key: string]: FormControlType; }; export type FormControlType = { name: string; getValue: () => any; setError: (error: string) => void; validate: () => Promise; submit: () => Promise; }; export type CountryType = { name: string; dialCode: string; code: string; }; export declare class FormFieldType { name?: string; type?: FormFieldTypes; label?: string; id?: string; help?: string; error?: string; maxLength?: number; min?: number | string | Date; max?: number | string | Date; step?: number | string; required?: boolean; autofocus?: boolean; value?: any; rows?: number; dialCode?: string; onChange?: (value: any) => any; onValidate?: (value: any) => string; onSubmit?: (value: any) => string; onAddItem?: (searchValue: string) => any; showAddItem?: boolean; addItemLabel?: string; dropUp?: boolean; accept?: string; width?: number; height?: number; multiple?: boolean; options?: Array; filterText?: string | ((item: any) => string) | null; displayText?: string | ((item: any) => string) | null; titleText?: string | ((item: any) => string) | null; subtitleText?: string | ((item: any) => string) | null; searchBy?: string | ((filterText: any, options: any[]) => Promise) | null; component?: any; props?: any; constructor(type: FormFieldTypes, name: string); } export type DetailsFieldtype = { field: string; label: string; class?: string; labelClass?: string; fieldClass?: string; component?: any; props?: any; }; /** * Input field appearnce. */ export type InputFieldAppearance = 'floating' | 'outline' | 'box' | 'underline' | 'fill' | 'normal' | 'none'; /** * Input fild size parameter. */ export type InputFieldSize = 'sm' | 'md' | 'lg'; /** * It can hold only the path of a SVG path. */ export type SVGPath = string; export type SizeType = 'sm' | 'md' | 'lg'; export declare enum ScrollDirectionEnum { NONE = 0, UP = 1, DOWN = 2, LEFT = 3, RIGHT = 4 } export declare enum ScrollAxis { X = 0, Y = 1 }