import { ChoiceItem } from "../api/models/survey.model"; export interface ShowVideoOnlyParams { videoUrl: string; minVideoUrl: string; userName: string; companyTitle: string; onExpand?: Function; onVideoEnd?: Function; onSkip?: Function; } export interface ShowSurveyParams { videoUrl: string; minVideoUrl: string; userName: string; companyTitle: string; question: string; choices: ChoiceItem[]; onTapChoice: OnTapChoice; onExpand?: Function; onVideoEnd?: Function; onSkip?: Function; } export declare type OnTapChoice = (choice: ChoiceItem) => void; export declare class PalSdk { constructor(); /** * Shows a simple video without any survey * * @param params @see ShowVideoOnlyParams */ showVideoOnly(params: ShowVideoOnlyParams): Promise; /** * Shows an embedded video then a survey * - user can only choose one choice * * @param params @see ShowSurveyParams */ showSingleChoiceSurvey(params: ShowSurveyParams): Promise; /** * If any video are found on the current page we delete it * */ clear(): void; }