import type { WorkflowConfig, EntityWorkflowReturn } from '@donotdev/crud';
import type { ReactNode } from 'react';
/** Props for EntityWorkflow */
export interface EntityWorkflowProps {
    /** Workflow configuration from defineWorkflow() */
    workflow: WorkflowConfig;
    /** Callback when all steps are completed */
    onComplete?: (allData: Record<string, unknown>) => void | Promise<void>;
    /** Callback when step changes */
    onStepChange?: (fromIndex: number, toIndex: number) => void;
    /** Default values to pre-fill across steps */
    defaultValues?: Record<string, unknown>;
    /** Viewer role for form rendering */
    viewerRole?: string;
    /** Render prop for custom layout (receives workflow state) */
    children?: (wf: EntityWorkflowReturn) => ReactNode;
    /** Additional CSS class */
    className?: string;
}
/**
 * EntityWorkflow — renders a multi-step entity workflow.
 *
 * Default mode: auto-renders Stepper + form + navigation buttons.
 * Custom mode: pass a render prop as children for full control.
 */
export declare function EntityWorkflow({ workflow: config, onComplete, onStepChange, defaultValues, viewerRole, children, className, }: EntityWorkflowProps): import("react/jsx-runtime").JSX.Element | null;
//# sourceMappingURL=EntityWorkflow.d.ts.map