import type { RuntimeState, WindowLike } from "../types.ts"; export declare function createDispatcher({ windowRef, getState, }: { windowRef: WindowLike; getState: () => RuntimeState; }): { enqueueEvent: (name: string, params: Record) => void; flush: ({ useBeacon }: { useBeacon: boolean; }) => Promise<{ sent: number; }>; flushNow: ({ useBeacon }?: { useBeacon?: boolean; }) => Promise<{ sent: number; }>; attachLifecycleFlush: () => void; };