import type { SearchKeywordOption } from '../../../components/search';

export type SearchOpenMode = 'navigate' | 'window';

export type SearchWindowSelection = {
  instanceId: string;
  id: string;
  label: string;
  group: string;
  description?: string;
  keywords: string[];
};

export type SearchWindowSelectionDraft = Omit<SearchWindowSelection, 'instanceId'>;

export type SearchLayerSnapshot = {
  open: boolean;
  options: SearchKeywordOption[];
  mode: SearchOpenMode;
  windowSelections: SearchWindowSelection[];
};
