/**
 * Event Bus Types
 *
 * The EventBus provides a normalized event stream that unifies events from
 * PostHog autocapture, Canvas events, and derived behavioral signals.
 */
/**
 * Event sources in the runtime.
 */
export type EventSource = 'posthog' | 'canvas' | 'derived';
/**
 * Normalized event structure for the event bus.
 */
export interface NormalizedEvent {
    /** Event timestamp (milliseconds since epoch) */
    ts: number;
    /** Normalized event name (e.g., "ui.click", "canvas.opened") */
    name: string;
    /** Event source */
    source: EventSource;
    /** Event properties/payload */
    props?: Record<string, unknown>;
    /** Schema version for forward compatibility */
    schemaVersion: string;
}
/**
 * Event filter for subscriptions.
 */
export interface EventFilter {
    /** Filter by event names (exact match) */
    names?: string[];
    /** Filter by event name patterns (regex) */
    patterns?: string[];
    /** Filter by sources */
    sources?: EventSource[];
}
/**
 * Callback for event subscriptions.
 */
export type EventCallback = (event: NormalizedEvent) => void;
/**
 * Unsubscribe function returned by subscribe().
 */
export type EventUnsubscribe = () => void;
/**
 * Standard event names used by the runtime.
 */
export declare const StandardEvents: {
    readonly UI_CLICK: "ui.click";
    readonly UI_SCROLL: "ui.scroll";
    readonly UI_INPUT: "ui.input";
    readonly UI_CHANGE: "ui.change";
    readonly UI_SUBMIT: "ui.submit";
    readonly NAV_PAGE_VIEW: "nav.page_view";
    readonly NAV_PAGE_LEAVE: "nav.page_leave";
    readonly CANVAS_OPENED: "canvas.opened";
    readonly CANVAS_CLOSED: "canvas.closed";
    readonly TILE_VIEWED: "tile.viewed";
    readonly TILE_EXPANDED: "tile.expanded";
    readonly TILE_COLLAPSED: "tile.collapsed";
    readonly TILE_ACTION: "tile.action";
    readonly OVERLAY_STARTED: "overlay.started";
    readonly OVERLAY_COMPLETED: "overlay.completed";
    readonly OVERLAY_DISMISSED: "overlay.dismissed";
    readonly OVERLAY_STEP_VIEWED: "overlay.step_viewed";
    readonly BEHAVIOR_RAGE_CLICK: "behavior.rage_click";
    readonly BEHAVIOR_HESITATION: "behavior.hesitation";
    readonly BEHAVIOR_CONFUSION: "behavior.confusion";
    readonly ACTION_APPLIED: "action.applied";
    readonly ACTION_REVERTED: "action.reverted";
    readonly ACTION_FAILED: "action.failed";
    readonly ACTION_CTA_CLICKED: "action.cta_clicked";
    readonly NOTIFICATION_SHOWN: "notification.shown";
    readonly NOTIFICATION_CLICKED: "notification.clicked";
    readonly NOTIFICATION_DISMISSED: "notification.dismissed";
    readonly NOTIFICATION_DEEP_LINK: "notification.deep_link";
    readonly SURFACE_MOUNTED: "surface.mounted";
    readonly SURFACE_UNMOUNTED: "surface.unmounted";
};
/**
 * Current schema version for normalized events.
 */
export declare const EVENT_SCHEMA_VERSION = "1.0.0";
