import type { Workflow } from "@stigmer/protos/ai/stigmer/agentic/workflow/v1/api_pb";
import type { WorkflowInstance } from "@stigmer/protos/ai/stigmer/agentic/workflowinstance/v1/api_pb";
/** Props for {@link WorkflowRunDialog}. */
export interface WorkflowRunDialogProps {
    /** Whether the dialog is open. */
    readonly open: boolean;
    /** Called when the dialog should close (cancel, backdrop click, Escape). */
    readonly onOpenChange: (open: boolean) => void;
    /** Organization slug that owns the workflow. */
    readonly org: string;
    /** The workflow blueprint to run. */
    readonly workflow: Workflow;
    /** Available workflow instances for the instance selector. */
    readonly instances: readonly WorkflowInstance[];
    /**
     * The platform-managed default instance ID (from workflow.status.defaultInstanceId).
     * Passed through to the form's instance picker to control visibility threshold.
     */
    readonly defaultInstanceId?: string;
    /**
     * Called after the execution is created successfully.
     * Receives the execution ID — use for navigation.
     */
    readonly onSuccess: (executionId: string) => void;
    /**
     * Called when submission fails. Receives a human-readable message.
     * Use for toast notifications.
     */
    readonly onError?: (message: string) => void;
}
/**
 * Dialog for running a workflow execution.
 *
 * Composes {@link useRunWorkflowFlow} with {@link WorkflowRunForm}
 * inside a native `<dialog>` element. Manages the full lifecycle:
 * form fields, validation, submission, error display, and close.
 *
 * Uses the same `<dialog>` + `showModal()` pattern as
 * {@link ConfirmDialog} — built-in focus trapping, Escape key
 * handling, and backdrop. Styled via `--stgm-*` design tokens.
 *
 * @example
 * ```tsx
 * <WorkflowRunDialog
 *   open={showRunDialog}
 *   onOpenChange={setShowRunDialog}
 *   org="acme"
 *   workflow={workflow}
 *   instances={instances}
 *   onSuccess={(id) => router.push(`/workflows/executions/${id}`)}
 *   onError={(msg) => toast.error(msg)}
 * />
 * ```
 */
export declare function WorkflowRunDialog({ open, onOpenChange, org, workflow, instances, defaultInstanceId, onSuccess, onError, }: WorkflowRunDialogProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=WorkflowRunDialog.d.ts.map