import { Fqn, ViewId } from '@likec4/core/types'; import { ActorRef, SnapshotFrom, StateMachine } from 'xstate'; export type SearchActorEvent = { type: 'open'; search?: string | undefined; } | { type: 'close'; } | { type: 'change.search'; search: string; } | { type: 'pickview.open'; elementFqn: Fqn; } | { type: 'navigate.to'; viewId: ViewId; focusOnElement?: Fqn | undefined; } | { type: 'animation.presence.end'; } | { type: 'pickview.close'; }; export interface SearchContext { openedWithSearch: string | null; searchValue: string; pickViewFor: Fqn | null; navigateTo: { viewId: ViewId; focusOnElement?: Fqn | undefined; } | null; } export interface SearchActorLogic extends StateMachine { } export declare const searchActorLogic: SearchActorLogic; export type SearchActorSnapshot = SnapshotFrom; export interface SearchActorRef extends ActorRef { }