export default withPubSub;
/** @import { PubSub } from 'pub-sub-es' */
/**
 * @template {typeof React.Component<{ pubSub?: PubSub }>} T
 * @param {T} Component
 * @returns {T}
 */
declare function withPubSub<T extends typeof React.Component<{
    pubSub?: PubSub;
}>>(Component: T): T;
export const Provider: React.Provider<{
    __fake__: boolean;
    publish: () => void;
    subscribe: () => {
        event: string;
        handler: () => void;
    };
    unsubscribe: () => void;
    clear: () => void;
}>;
import React from 'react';
import type { PubSub } from 'pub-sub-es';
