/**
 * RuntimeProvider - React context for accessing the v2 Runtime.
 *
 * Provides access to the SmartCanvasRuntime from any component in the tree.
 */
import { type ReactNode } from 'react';
import type { RuntimeContext } from './context/types';
import type { SmartCanvasRuntime } from './runtime';
export interface RuntimeProviderProps {
    /** The SmartCanvasRuntime instance */
    runtime: SmartCanvasRuntime | null;
    children: ReactNode;
}
/**
 * Provider component for the SmartCanvasRuntime.
 */
export declare function RuntimeProvider({ runtime, children }: RuntimeProviderProps): import("react/jsx-runtime").JSX.Element;
/**
 * Hook to access the SmartCanvasRuntime.
 */
export declare function useRuntime(): SmartCanvasRuntime | null;
/**
 * Hook to access the current runtime context (reactive).
 */
export declare function useRuntimeContext(): RuntimeContext | null;
/**
 * Hook to access a specific part of the runtime context.
 */
export declare function usePageContext(): import("./context").PageContext | null;
export declare function useSessionContext(): import("./context").SessionContext | null;
export declare function useViewportContext(): import("./context").ViewportContext | null;
/**
 * Hook to subscribe to runtime events.
 */
export declare function useRuntimeEvents(filter: {
    names?: string[];
    patterns?: string[];
    sources?: Array<'posthog' | 'canvas' | 'derived'>;
} | undefined, callback: (event: import('./events/types').NormalizedEvent) => void, deps?: React.DependencyList): void;
/**
 * Hook to access state helpers.
 */
export declare function useRuntimeState(): import("./state").StateStore | null;
/**
 * Hook to evaluate a decision strategy.
 */
export declare function useDecision<T>(strategy: import('./decisions/types').DecisionStrategy<T> | undefined | null, defaultValue: T): {
    value: T;
    isFallback: boolean;
    isLoading: boolean;
};
