import { type ReactNode } from 'react'; import { type DataTestId, type DOMProps, type StylingProps, type WithChildren } from '@dynatrace/strato-components/core'; import type { FilterFieldPrimitive } from '../types/validation.js'; /** * Helper type for defining the properties of a FilterField suggestion. * @public */ export type FilterFieldSuggestion = { /** * The value used when applying the suggestion. * @defaultValue undefined */ value?: string; /** * The display value to show for the suggestion. */ displayValue?: ReactNode; /** * Additional information to render for the suggestion. */ details?: ReactNode; /** * The display value to show for the suggestion. */ icon?: ReactNode; /** * The characters to add to the suggestion when applying. * @defaultValue space */ trailing?: string; /** * Insertion mode used when applying the suggestion. * @defaultValue 'replace-token' */ insertionStrategy?: 'replace-token' | 'replace-statement' | 'replace-all' | 'insert'; /** * Whether the cursor should be set before the trailing characters. * @defaultValue false */ cursorBeforeTrailing?: boolean; /** * Defines the type of the suggestion and provides a type indication by default. * When used with the `ValidatorMap` it may be derived from their predicates. */ valueType?: FilterFieldPrimitive; }; /** * Accepted properties for FilterFieldSuggestion. * @public */ export type FilterFieldSuggestionProps = WithChildren & StylingProps & DataTestId & DOMProps & FilterFieldSuggestion; /** * @public */ export declare const Suggestion: { (props: FilterFieldSuggestionProps): import("react/jsx-runtime.js").JSX.Element | null; displayValue: string; };