import { ImageAsset } from './card'; import { Datasource } from './datasource'; export interface CardOption { key: string; value: any; enables?: string[]; disables?: string[]; filter?: { key: string; value: string; }; scrollTo?: boolean; type?: string; } export interface QuestionSubscription { key: string; trigger: string; } export declare class QuestionBase { value: T; key: string; label: string; placeholder?: string; required?: boolean; pattern?: string; errorMessage?: string; order?: number; controlType: string; targetLabel?: string; targetArg?: string; image?: ImageAsset | ImageAsset[]; hint?: string; options?: CardOption[]; toggles?: string[]; alert?: object; html?: string; show?: boolean; disabled?: boolean; showIf?: { key: string; value: string | { $ne?: string; $eq?: string; $gt?: string; $lt?: string; $gte?: string; $lte?: string; }; }; showIfPopulated?: boolean; defaultValue?: any; regexs?: { type: string; patterns: string[]; }[]; targetOcr?: string; targetOcrField?: string; subscriptions?: QuestionSubscription[]; sort?: 'asc' | 'desc'; dropdownItemLabel?: string; dropdownValueLabel?: string; mapsConfig?: any; datasource?: Datasource; /** if true, then force the input in a textbox to uppercase */ forceUpper?: boolean; /** Button label for document viewer */ buttonLabel?: string; /** Button icon for document viewer */ buttonIcon?: string; constructor(options?: { value?: T; key?: string; label?: string; placeholder?: string; required?: boolean; pattern?: string; errorMessage?: string; order?: number; controlType?: string; targetLabel?: string; targetArg?: string; image?: ImageAsset; hint?: string; options?: CardOption[]; toggles?: string[]; alert?: object; html?: string; show?: boolean; disabled?: boolean; showIf?: { key: string; value: string; }; showIfPopulated?: boolean; defaultValue?: any; regexs?: { type: string; patterns: string[]; }[]; targetOcr?: string; targetOcrField?: string; subscriptions?: QuestionSubscription[]; sort?: 'asc' | 'desc'; dropdownItemLabel?: string; dropdownValueLabel?: string; mapsConfig?: any; datasource?: Datasource; }); }