/**
 * @license
 * Copyright 2026 Amodal Labs, Inc.
 * SPDX-License-Identifier: MIT
 */
import type { ReactNode } from 'react';
export declare const STUDIO_EVENT_TYPES: readonly ["store_updated", "session_updated", "feedback_created", "automation_started", "automation_completed"];
export type StudioEventType = (typeof STUDIO_EVENT_TYPES)[number];
export type EventHandler = (payload: unknown) => void;
export interface StudioEventsContextValue {
    subscribe(types: StudioEventType[], handler: EventHandler): () => void;
}
export declare const StudioEventsContext: import("react").Context<StudioEventsContextValue>;
export declare function StudioEventsProvider({ children }: {
    children: ReactNode;
}): import("react/jsx-runtime").JSX.Element;
/**
 * Subscribe to real-time Studio events. The handler is called whenever
 * any of the specified event types fire.
 *
 * @example
 * ```tsx
 * useStudioEvents(['store_updated'], (payload) => {
 *   console.log('Store updated:', payload);
 * });
 * ```
 */
export declare function useStudioEvents(types: StudioEventType[], handler: EventHandler): void;
