import { Position } from '../../ui/types'; export type WithRequired = T & { [P in K]-?: T[P]; }; export interface FeedbackSubmission { question: string; feedbackId?: string; score: number; comment: string; } export interface FeedbackScoreSubmission { feedbackId?: string; question: string; score: number; } export interface OnScoreSubmitResult { feedbackId: string; } export interface OpenFeedbackFormOptions { key: string; title?: string; /** * Control the placement and behavior of the feedback form. */ position?: Position; /** * Add your own custom translations for the feedback form. * Undefined translation keys fall back to english defaults. */ translations?: Partial; /** * Open the form with both the score and comment fields visible. * Defaults to `false` */ openWithCommentVisible?: boolean; onSubmit: (data: FeedbackSubmission) => Promise | void; onScoreSubmit?: (data: FeedbackScoreSubmission) => Promise; onClose?: () => void; onDismiss?: () => void; } /** * You can use this to override text values in the feedback form * with desired language translation */ export type FeedbackTranslations = { /** * */ DefaultQuestionLabel: string; QuestionPlaceholder: string; ScoreStatusDescription: string; ScoreStatusLoading: string; ScoreStatusReceived: string; ScoreVeryDissatisfiedLabel: string; ScoreDissatisfiedLabel: string; ScoreNeutralLabel: string; ScoreSatisfiedLabel: string; ScoreVerySatisfiedLabel: string; SuccessMessage: string; SendButton: string; }; //# sourceMappingURL=types.d.ts.map