import type { OpenFin } from '@openfin/core'; type ChannelActionMap = { [action: string]: (...args: any[]) => any; }; type TypedChannelClient = Omit & { dispatch: (action: T, payload: Parameters[0]) => Promise>>; register: (action: T, handler: (payload: Parameters[0], id: OpenFin.ProviderIdentity | OpenFin.ClientIdentity) => Promise>>) => boolean; }; type TypedChannelProvider = Omit & { dispatch: (to: OpenFin.ClientIdentity, action: T, payload: Parameters[0]) => Promise>>; register: (action: T, handler: (payload: Parameters[0], id: OpenFin.ProviderIdentity | OpenFin.ClientIdentity) => Promise>>) => boolean; }; export type SetSearchQueryPayload = { query: string; providerId?: string; context?: Record; }; export type SearchInvokedPayload = { query?: string; providerId?: string; context?: Record; }; /** * Actions the VPW window dispatches TO the platform provider (provider handles these). * @internal */ export type HomeVpwChannelProviderChannelActions = { ready: () => void; }; /** * Actions the platform provider dispatches TO the VPW window (client handles these). * @internal */ export type HomeVpwChannelClientChannelActions = { 'search-invoked': (payload: SearchInvokedPayload) => void; 'set-search-query': (payload: SetSearchQueryPayload) => void; /** Immediate show — mirrors legacy `show-home` / `showAndFocus`. */ 'show': () => void; /** Deferred show after resize animation and theme sync — mirrors legacy `setSearchQuery` show path. */ 'show-when-ready': () => void; }; export type HomeVpwChannelProvider = TypedChannelProvider; export type HomeVpwChannelClient = TypedChannelClient; export {};