export interface PubSub { on(type: string, handler: (...args: unknown[]) => unknown): void; off(type?: string, handler?: (...args: unknown[]) => unknown): void; emit(type: string, ...payload: any[]): void; once(type: string, handler: (...args: unknown[]) => unknown): void; } export declare function createPubSub(): PubSub; export declare const pubSub: PubSub;