/** * Utility functions for sf-featurepriority */ /** * Interface for Survey Field options */ interface SurveyFieldOption { value: string; label: string; } /** * Interface for Survey Field configuration */ interface SurveyField { label: string; value: string; inputType: string; required?: boolean; placeholder?: string; options?: SurveyFieldOption[]; defaultValue?: any; } /** * Check if a survey key is valid UUID * @param key The survey key to validate * @returns True if the key is a valid UUID, false otherwise */ export declare function isValidKey(key: string | undefined | null): boolean; /** * Shuffle an array using Fisher-Yates algorithm * @param array The array to shuffle * @returns A new shuffled array */ export declare function shuffleArray(array: T[]): T[]; /** * Move an item in an array from one position to another * @param array The array to modify * @param fromIndex The source index * @param toIndex The destination index * @returns A new array with the item moved */ export declare function moveArrayItem(array: T[], fromIndex: number, toIndex: number): T[]; /** * Get field configuration for rendering * @param detail The Survey Field configuration * @param value The current value of the field * @returns Field configuration object */ export declare function getFieldConfig(detail: SurveyField, value: string): { inputType: string; placeholder: string; required: boolean; options: import("./SurveyFieldDropdown").SurveyFieldDropdownOption[]; defaultValue: unknown; hasOptions: boolean; selectedValues: string[]; fieldValue: string; currentValue: string; }; export declare function addToCommaSeparatedList(currentValue: string, valueToAdd: string): string; export declare function removeFromCommaSeparatedList(currentValue: string, valueToRemove: string): string; /** * Format an error into a human-readable string * @param error The error to format (Error object, string, or unknown) * @returns A string representation of the error */ export declare function formatErrorMessage(error: unknown): string; export {};