import type { ReactNode, Ref } from 'react'; import type { BaseProps, NoChildrenProp } from '@pega/cosmos-react-core'; export interface PredictionItem { /** A unique id to represent the item. */ id: string; /** Label for the prediction item. */ label: string; /** Value for the prediction item. */ value: string; /** Additional prediction information rendered in a dialog. */ additionalInfo?: ReactNode; } export default interface PredictionsProps extends BaseProps, NoChildrenProp { /** Integer representing the total count of items. */ count?: number; /** An array of PredictionItem objects to render. Pass an appropriately limited length array with a desired sort order based on design system defaults or config. */ items?: PredictionItem[]; /** Show a progress indicator when initially fetching list data. */ progress?: boolean; /** Ref for the wrapping element. */ ref?: Ref; } //# sourceMappingURL=Predictions.types.d.ts.map