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";
import type { AdditionalTab, DetailAction } from "../resource-detail/types.js";
/** Props for {@link WorkflowDetailView}. */
export interface WorkflowDetailViewProps {
    /** Organization slug that owns the workflow. */
    readonly org: string;
    /** Workflow slug (URL-friendly identifier unique within the org). */
    readonly slug: string;
    /**
     * Called once when the workflow resource has been fetched successfully.
     * Provides the resource display name for breadcrumbs, document titles, etc.
     */
    readonly onResourceLoad?: (meta: {
        name: string;
        id: string;
    }) => void;
    /**
     * Primary action rendered as a visible button in the header area.
     */
    readonly primaryAction?: DetailAction;
    /**
     * Secondary actions rendered in the kebab overflow menu.
     */
    readonly actions?: readonly DetailAction[];
    /**
     * Additional tabs to render alongside the built-in tabs.
     */
    readonly additionalTabs?: readonly AdditionalTab[];
    /** Controlled active tab ID. */
    readonly activeTab?: string;
    /** Controlled tab change handler. */
    readonly onTabChange?: (tabId: string) => void;
    /** Default active tab ID when in uncontrolled mode. @default "overview" */
    readonly defaultTab?: string;
    /**
     * Called when a user clicks an execution row in the Executions tab.
     * Receives the execution ID — use for navigation to the execution viewer.
     */
    readonly onExecutionClick?: (executionId: string) => void;
    /**
     * Called when the user clicks "Create Instance" in the Instances tab.
     * Opens the create instance dialog.
     */
    readonly onCreateInstanceClick?: () => void;
    /**
     * Called when the user clicks an instance row in the Instances tab.
     */
    readonly onInstanceClick?: (instance: WorkflowInstance) => void;
    /**
     * Called when the user clicks "Run" on a specific instance.
     */
    readonly onInstanceRunClick?: (instance: WorkflowInstance) => void;
    /**
     * Called when the user clicks "Delete" on a specific instance.
     */
    readonly onInstanceDeleteClick?: (instance: WorkflowInstance) => void;
    /**
     * Increment this value to trigger a refetch of the instance list.
     * Useful after externally creating or deleting an instance.
     */
    readonly instancesRefreshKey?: number;
    /**
     * When `true`, description and environment variables become click-to-edit.
     * Each field saves independently via `stigmer.workflow.update()`.
     * @default false
     */
    readonly editable?: boolean;
    /**
     * Called after a successful inline field save with the updated workflow.
     */
    readonly onResourceUpdated?: (workflow: Workflow) => void;
    /**
     * Called when the user clicks "Open in editor" from the overview graph
     * node popover. Receives the task name. Wire this to switch to the
     * editor tab and optionally select the node.
     *
     * @since T12 (Overview Page Redesign)
     */
    readonly onOpenInEditor?: (taskName: string) => void;
    /**
     * Called when the user clicks "View latest run" in the overview quick
     * actions. Receives the execution ID of the most recent execution.
     *
     * @since T12 (Overview Page Redesign)
     */
    readonly onViewLatestRun?: (executionId: string) => void;
    /** Additional CSS classes for the root container. */
    readonly className?: string;
}
/**
 * Operational detail hub for a Workflow blueprint.
 *
 * Fetches the workflow via {@link useWorkflow} internally and renders
 * its full specification inside a {@link ResourceDetailShell}:
 *
 * - **Overview**: Description, budget, env vars, task flow DAG, document metadata
 * - **Instances**: Environment-bound deployments (embedded, not standalone)
 * - **Executions**: Recent executions with phase badges and timing
 *
 * Handles loading, error, and not-found states automatically.
 * Zero Console dependencies — safe for platform builder embedding.
 * All visual properties flow through `--stgm-*` design tokens.
 *
 * @example
 * ```tsx
 * <WorkflowDetailView org="acme" slug="onboard-user" />
 * ```
 */
export declare function WorkflowDetailView({ org, slug, onResourceLoad, primaryAction, actions, additionalTabs, activeTab, onTabChange, defaultTab, onExecutionClick, onCreateInstanceClick, onInstanceClick, onInstanceRunClick, onInstanceDeleteClick, instancesRefreshKey, editable, onResourceUpdated, onOpenInEditor, onViewLatestRun, className, }: WorkflowDetailViewProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=WorkflowDetailView.d.ts.map