/**
 * OrbPreview Component
 *
 * Renders a live preview of an Orbital schema (.orb program).
 * Uses static imports (no lazy loading) to ensure all providers,
 * hooks, and components share the same module instances.
 *
 * Usage:
 *   <OrbPreview schema={orbJsonStringOrObject} />
 *   <OrbPreview schema={schema} serverUrl="/api/orbitals" />
 *
 * @packageDocumentation
 */
import React from 'react';
import type { OrbitalSchema, EntityData } from '@almadar/core';
import { type ServerBridgeTransport } from './ServerBridge';
export interface OrbPreviewProps {
    /**
     * The orbital schema. Accepts a JSON string or an `OrbitalSchema` object
     * from `@almadar/core` (the validated `.orb` program type).
     */
    schema: string | OrbitalSchema;
    /**
     * Mock entity rows keyed by entity name. The `EntityData` type from
     * `@almadar/core` is `Record<string, EntityRow[]>` where each row is a
     * `{ id?: string } & Record<string, FieldValue>`. Ignored if `autoMock`
     * is set.
     */
    mockData?: EntityData;
    /**
     * When true, run the schema through `prepareSchemaForPreview` before
     * rendering: auto-generate mock entity rows and flip two-state INIT
     * machines so the data state is initial. This is the same pipeline the
     * playground uses, so consumers (docs MDX, playground) all share one path.
     *
     * Ignored when `serverUrl` is set — server-driven previews provide their
     * own data.
     */
    autoMock?: boolean;
    /** Preview container height. Default: '400px'. */
    height?: string;
    /** CSS class for the outer container. */
    className?: string;
    /** Server URL for dual execution (e.g. "/api/orbitals"). When set, events are forwarded to the server. */
    serverUrl?: string;
    /**
     * Custom transport for in-process execution. Mutually exclusive with
     * `serverUrl`. Used by `<BrowserPlayground>` to invoke
     * `OrbitalServerRuntime.processOrbitalEvent` directly without HTTP.
     */
    transport?: ServerBridgeTransport;
    /**
     * Initial page path to render (e.g. `/deals`). Resolves against the
     * schema's `pages[]` to seed `currentPage` so the right orbital's traits
     * mount on first render. Without this the playground falls back to the
     * schema's first page binding (gap #13 Phase 5). runtime-verify uses this
     * to walk DealCreate, NoteCompose, etc. on their owning pages.
     */
    initialPagePath?: string;
}
/**
 * Renders a live preview of an Orbital schema.
 *
 * Uses static imports for all runtime components to ensure providers
 * and hooks share the same module instances (no context duplication).
 *
 * @example
 * ```tsx
 * <OrbPreview schema={orbJsonString} height="300px" />
 * <OrbPreview schema={schema} autoMock />
 * <OrbPreview schema={schema} serverUrl="/api/orbitals" />
 * ```
 */
export declare function OrbPreview({ schema, mockData, autoMock, height, className, serverUrl, transport, initialPagePath, }: OrbPreviewProps): React.ReactElement;
export declare namespace OrbPreview {
    var displayName: string;
}
