react-instantsearch-core
Version:
⚡ Lightning-fast search for React, by Algolia
10 lines (9 loc) • 641 B
TypeScript
import type { InstantSearchServerState } from '../components/InstantSearchSSRProvider';
import type { InternalInstantSearch } from './useInstantSearchApi';
import type { UiState } from 'instantsearch.js';
import type { MutableRefObject } from 'react';
export type InstantSearchSSRContextApi<TUiState extends UiState, TRouteState = TUiState> = InstantSearchServerState & {
ssrSearchRef: MutableRefObject<InternalInstantSearch<TUiState, TRouteState> | null>;
recommendIdx: MutableRefObject<number>;
};
export declare const InstantSearchSSRContext: import("react").Context<Partial<InstantSearchSSRContextApi<UiState, UiState>> | null>;