import { ResponseStyle, ResponseStyleEvaluator } from '../modality/ModalityEvaluation'; import { ControlResponseBuilder } from '../responseGeneration/ControlResponseBuilder'; import { Response } from 'ask-sdk-model'; import { ControlInput } from '../controls/ControlInput'; import { ControlResultBuilder } from '..'; /** * Properties for building a response based on ResponseStyle. */ export interface ResponseStyleBuilderProps { voicePrompt: string; voiceReprompt?: string; responseStyle: ResponseStyle; builder: ControlResponseBuilder; } /** * Adds voice prompt and reprompt to a ControlResponseBuilder conditionally based on * the ResponseStyle contained in the ResponseStyleBuilderProps. * * If the modality of the response style is SCREEN, the voice prompt and reprompt * will not be added. In any other case, they will be added. * * @param props - ResponseStyleBuilderProps - properties needed for adding prompts to * the response. */ export declare function addFragmentsForResponseStyle(props: ResponseStyleBuilderProps): void; /** * Adds voice prompt and reprompt to a ControlResponseBuilder conditionally based on * the ResponseStyle contained in the ResponseStyleBuilderProps. * * If the modality of the response style is SCREEN, the voice prompt and reprompt * will not be added. In any other case, they will be added. * * After adding the prompts, the response is built. * * @param props - ResponseStyleBuilderProps - properties needed for adding prompts to * the response. * @returns Response - The response for the current skill turn. */ export declare function buildResponseForStyle(props: ResponseStyleBuilderProps): Response; /** * Executes a ResponseStyleEvaluator override function and determines whether to use * the result from it or the base, non-overridden result. * @param evaluator - ResponseStyleEvaluator - Overridden ResponseStyleEvaluator * @param input - ControlInput - Input for the current skill turn * @returns ResponseStyle - Uses the result from the provided evaluator if it was * determinate, otherwise uses the ResponseStyle present in the provided ControlInput. */ export declare function getDeterminateResponseStyle(evaluator: ResponseStyleEvaluator, input: ControlInput): ResponseStyle; /** * Overrides the default session behavior depending on the requested response style. * If the response style includes a screen output modality, the session will enter an idle state. * In all other cases, the default behavior is preserved. * @param resultBuilder - ControlResultBuilder - The ControlResultBuilder for the current skill turn * @param responseStyle - ResponseStyle - The ResponseStyle for the current skill turn */ export declare function setSessionBehaviorForStyle(resultBuilder: ControlResultBuilder, responseStyle: ResponseStyle): void; //# sourceMappingURL=ResponseUtils.d.ts.map