import type { Readable } from "svelte/store"; export interface BroadcastChannelOptions { /** * The name of the channel. * @default "" */ name?: string; } export interface BroadcastChannelReturn { is_supported: Readable; channel: Readable; data: Readable; post: (data: P) => void; close: () => void; error: Readable; is_closed: Readable; } /** * Reactive BroadcastChannel * * @see https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel * @param options * */ export declare const broadcast_channel: (options?: BroadcastChannelOptions) => BroadcastChannelReturn; export { broadcast_channel as broadcastChannel };