9 lines
425 B
TypeScript
9 lines
425 B
TypeScript
import type { GlitchHostBridge } from './types';
|
|
export type DevHostBridgeOptions = {
|
|
isMuted?: () => boolean;
|
|
onSound?: (id: string, payload?: Record<string, unknown>) => void;
|
|
onEmit?: (type: string, payload?: unknown) => void;
|
|
};
|
|
export declare function createDevHostBridge(options?: DevHostBridgeOptions): GlitchHostBridge;
|
|
export declare function attachWindowSoundBridge(host: GlitchHostBridge): () => void;
|