import type OpenFin from '@openfin/core'; import { withDisconnectListener } from '../../../../common/src/utils/channels'; import { SearchAPIClientChannelClient } from '../../../../common/src/api/protocol/shapes/search'; import type { HomeClientApiDataRequest, HomeClientApiDispatchRequest, HomeClientApiSearchCloseRequest, HomeInternalDataResponse, HomeInternalErrorResponse, InternalSearchListenerRequest } from '../../../../common/src/api/shapes/home'; import { HomeVpwProvidersMap } from './providers-map'; import type { CLIProvider, HomeProvider } from '../../../../client-api/src/shapes'; export type HomeVpwChannelHandlersContext = { providers: HomeVpwProvidersMap; searchRequests: Map; getSearchClientAPIChannelClient: () => Promise>; }; export type HomeVpwChannelHandlers = { handleDataRequest: (req: HomeClientApiDataRequest) => Promise; handleResultDispatch: (req: HomeClientApiDispatchRequest, identity: OpenFin.Identity) => Promise; handleSearchRequestClose: (req: HomeClientApiSearchCloseRequest) => void; handleChannelDisconnection: () => Promise; }; export declare const createHomeVpwChannelHandlers: (ctx: HomeVpwChannelHandlersContext) => HomeVpwChannelHandlers; type HomeVpwSearchChannelClient = withDisconnectListener & { homeVpwChannelActionsRegistered?: boolean; }; export declare const registerHomeVpwChannelClientActions: (channel: HomeVpwSearchChannelClient, handlers: HomeVpwChannelHandlers) => void; export {};