import { AplContent, ControlInput, ControlResponseBuilder } from '../..'; import { ListAPLComponentProps } from '../listControl/ListControl'; import { NumberControl, NumberControlAPLComponentProps } from './NumberControl'; export declare namespace NumberControlAPLComponentBuiltIns { function renderModalKeypad(control: NumberControl, props: NumberControlAPLComponentProps, input: ControlInput, resultBuilder: ControlResponseBuilder): Promise<{ type: string; controlId: string; inputNumber: string; validationFailureMessage: string; }>; /** * Defines ModalKeyPad Renderer for APLComponentMode. */ class ModalKeyPadRender { /** * Provides a default implementation of textList with default props. * * @param control - ListControl * @param defaultProps - props * @param input - Input * @param resultBuilder - Result builder */ static default: (control: NumberControl, defaultProps: NumberControlAPLComponentProps, input: ControlInput, resultBuilder: ControlResponseBuilder) => Promise<{ type: string; controlId: string; inputNumber: string; validationFailureMessage: string; }>; /** * Provides customization over `renderModalKeypad()` arguments where the input * props overrides the defaults. * * @param props - props */ static of(props: ListAPLComponentProps): (control: NumberControl, defaultProps: NumberControlAPLComponentProps, input: ControlInput, resultBuilder: ControlResponseBuilder) => Promise<{ type: string; controlId: string; inputNumber: string; validationFailureMessage: string; }>; } } export declare namespace NumberControlAPLPropsBuiltIns { interface DefaultSelectValueAPLProps { /** * Default: 'Please select' */ title?: string; /** * Tracks the text to be displayed for invalid input values * when control renders APL in Component Mode. */ validationFailedMessage?: string | ((value?: number) => string); /** * Function that maps the NumberControlState.value to rendered value that * will be presented to the user as a list. * * Default: returns the value unchanged in string format. */ valueRenderer?: (value: number, input: ControlInput) => string; } function defaultSelectValueAPLContent(props: DefaultSelectValueAPLProps): (control: NumberControl, input: ControlInput) => AplContent | Promise; /** * The APL dataSource to use when requesting a number value. * */ function numberPadDataSourceGenerator(control: NumberControl, input: ControlInput, contentProps: DefaultSelectValueAPLProps): Promise<{ numPadData: { controlId: string; headerTitle: string; validationFailedMessage: string; }; }>; /** * The APL document to use when requesting a number value. * For information on EditText, see: * https://developer.amazon.com/en-US/docs/alexa/alexa-presentation-language/apl-edittext.html * */ function numberPadDocumentGenerator(): { type: string; version: string; import: { name: string; version: string; }[]; styles: { EditStyle: { values: ({ borderWidth: number; borderStrokeWidth: number; borderColor: string; hintColor: string; fontSize: string; when?: undefined; } | { when: string; borderColor: string; borderStrokeWidth: number; borderWidth?: undefined; hintColor?: undefined; fontSize?: undefined; })[]; }; }; mainTemplate: { parameters: string[]; items: { type: string; width: string; height: string; direction: string; items: ({ type: string; headerTitle?: undefined; headerDivider?: undefined; alignItems?: undefined; justifyContent?: undefined; grow?: undefined; items?: undefined; } | { type: string; headerTitle: string; headerDivider: boolean; alignItems?: undefined; justifyContent?: undefined; grow?: undefined; items?: undefined; } | { type: string; alignItems: string; justifyContent: string; grow: number; items: ({ type: string; id: string; style: string; keyboardType: string; submitKeyType: string; bind: { name: string; value: string; type: string; }[]; onSubmit: { type: string; commands: { type: string; arguments: string[]; }[]; }[]; accessibilityLabel: string; width: string; validCharacters: string; hint: string; hintWeight: string; fontSize: string; spacing?: undefined; text?: undefined; textAlign?: undefined; color?: undefined; } | { type: string; width: string; spacing: string; text: string; textAlign: string; fontSize: string; color: string; id?: undefined; style?: undefined; keyboardType?: undefined; submitKeyType?: undefined; bind?: undefined; onSubmit?: undefined; accessibilityLabel?: undefined; validCharacters?: undefined; hint?: undefined; hintWeight?: undefined; })[]; headerTitle?: undefined; headerDivider?: undefined; })[]; }; }; }; } export declare type NumberControlAPLComponentStyle = 'modalKeypad'; //# sourceMappingURL=NumberControlAPL.d.ts.map