import { default as React } from 'react'; import { XPEventBus, XPEventListener } from '../events'; export declare const EventBusProvider: React.FC<{ bus: XPEventBus; children: React.ReactNode; }>; /** The desktop's event bus. Stable for the provider's lifetime. */ export declare const useXPEventBus: () => XPEventBus; /** Subscribe to desktop events for the lifetime of the component. */ export declare const useXPEvents: (listener: XPEventListener) => void;