import { SearchConfigInterface } from '@cosmograph/ui'; export interface CosmographSearchConfigInterface extends Omit, 'placeholderRenderer' | 'footerComponent' | 'searchFn'> { /** Data column key to access time values for the `CosmographSearch`. Make sure it's included in `pointIncludeColumns` if you're not using this column as other point accessor. * * @default undefined */ accessor?: string; /** * The text to display in the search input placeholder. * @default 'Search...' */ placeholderText?: string; /** * Whether to show the accessors menu. * @default true */ showAccessorsMenu?: boolean; /** * A map of field names (accessors) to their display labels for the suggestion list. * The order of fields in the map determines the display order in the suggestion. * If provided, the suggestion renderer will display these fields and their values. * The main `accessor` will be added first if not present in this map. * Example: { 'id': 'Point ID', 'weight': 'Weight' } * @default undefined */ suggestionFields?: Record; /** * An array of CSS-valid colors to use for the suggestion fields. Colors will be applied in order and cycled through if not enough colors are provided. * @default `['#fbb4aebf', '#b3cde3bf', '#ccebc5bf', '#decbe4bf', '#fed9a6bf', '#ffffccbf', '#e5d8bdbf', '#fddaecbf'],` */ suggestionFieldsPalette?: string[]; /** * Maximum number of characters to show before and after a search match in suggestions. * If the result is longer than this limit, it will be truncated with "..." to indicate truncation. * Set to 0 to disable truncation and show full text. * @default 50 */ suggestionTruncationLength?: number; /** * Preserves the selection on unmount. * * @default false */ preserveSelectionOnUnmount?: boolean; /** * Whether to show footer with "Select all results" button and the counter of results below the search suggestion dropdown. * When enabled, displays a footer below the suggestion list. * * @default false */ showFooter?: boolean; /** * Callback triggered when all suggestions from the results are selected using the "Select all results" button. * @param suggestionIndexes - An array of selected suggestion indexes or undefined if no suggestions are selected */ onSelectAll?: (suggestionIndexes: number[] | undefined) => void; /** * Whether to also select connected points when a result is selected from the dropdown. * When enabled, selecting a point will also select all points that are directly connected to it via links. * * @default false */ selectConnectedPoints?: boolean; /** * The scale to zoom to when a point is selected from the dropdown. * @default 3 */ zoomToPointOnSelectScale?: number; /** * The duration of the zoom animation when a point is selected from the dropdown. * @default 250 */ zoomToPointOnSelectDuration?: number; /** * Whether to focus the point when a point is selected from the dropdown. * @default true */ focusPointOnSelect?: boolean; } export declare const defaultCosmographSearchConfig: CosmographSearchConfig; export type CosmographSearchConfig = CosmographSearchConfigInterface;