/******************************************************************************** * Copyright (c) 2026 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * https://www.eclipse.org/legal/epl-2.0 * * SPDX-License-Identifier: EPL-2.0 ********************************************************************************/ import { FunctionComponent, ReactNode } from 'react'; import { GridStep } from '../../hooks/use-grid-cursor'; import { Signal } from '../../hooks/use-signal'; /** * Focus coordination between the search fields and the results grid. Signals are * emitted by whichever component owns the intent; subscribers react via * useSignalEffect and focus their own element, so no entry point needs a global * DOM lookup. */ export type ResultsNavAction = GridStep | 'open'; export interface SearchFocusValue { searchFocusSignal: Signal; resultsNavigationSignal: Signal; searchFocused: boolean; setSearchFocused: (focused: boolean) => void; } export declare function useSearchFocus(): SearchFocusValue; export declare const SearchFocusProvider: FunctionComponent<{ children: ReactNode; }>; //# sourceMappingURL=search-focus-context.d.ts.map