import { PersonalityQuizFullModel } from 'fansunited-sdk-esm'; import { IPersonaResult, IQuestionsRequest } from '../models/RequestBody/RequestBody'; import { IAnswerBreakdownQuestion, IOptionsReportQuestion } from '../models/Reports/AnswerBreakdownModel'; /** * Transforms the number to e specific format. Example: * - 1323 -> 1.3k * - 1500000 -> 1.5m * - 100100000 -> 1.1b * @param value Number to be formatted * @returns Formatted number */ export declare const formatNumber: (value: number) => string | number; export declare const scrollToComponent: (componentId: string) => void; export declare const capitalizeWord: (word: string) => string; export declare const formatDateByPeriod: (date: Date, period: string) => string; export declare const getStatusColor: (status: string) => "danger" | "success" | "neutral"; export declare const replacePlaceholder: (label: string, name: string, placeholder: string) => string; export declare const getPercentage: (value: string, total: string) => string; /** * The questions and the persona results are edited in place by the management components, so every * language needs its own copies. Otherwise a translation shares the objects of the language it was * created from and editing an option or a persona in one language changes it in all of them. */ export declare const cloneQuestions: (questions: IQuestionsRequest[]) => IQuestionsRequest[]; export declare const clonePersonaResults: (personaResults: IPersonaResult[]) => IPersonaResult[]; export declare const getNextAvailableId: (existingIds: number[]) => number; /** * The options report contains only question and option ids, so it is merged with the quiz content to be displayed. * The quiz order is kept. Options without answers are missing from the report and are set to 0. */ export declare const buildAnswerBreakdown: (quiz: PersonalityQuizFullModel, report: IOptionsReportQuestion[]) => IAnswerBreakdownQuestion[];