export type DeviceEventMap = Record; export type Unsubscribe = () => void; /** * DeviceEventBus:基于 React Native DeviceEventEmitter 的轻量事件总线 * - 仅清理本总线注册的监听器,不影响其他模块 * - 支持 once/on/emit/off/removeAll */ export declare class DeviceEventBus { private subscriptions; on(eventName: K, listener: (payload: E[K]) => void): Unsubscribe; once(eventName: K, listener: (payload: E[K]) => void): Unsubscribe; emit(eventName: K, payload: E[K]): void; /** * 只移除本总线注册的该事件监听器,不影响外部注册的监听器 */ off(eventName: K): void; /** * 清理本总线注册的所有监听器 */ removeAll(): void; } export declare const deviceEventBus: DeviceEventBus; export default deviceEventBus; //# sourceMappingURL=DeviceEventBus.d.ts.map