import * as react_jsx_runtime from 'react/jsx-runtime'; import { BpmClient, Task, HistoryTask, TaskFormVariables } from '@amaster.ai/bpm-client'; export { BpmClient, HistoryTask, Task, TaskFormVariables } from '@amaster.ai/bpm-client'; export { addBpmTranslations, bpmTranslations } from './i18n/index.js'; interface MyTasksPageProps { /** BPM client instance */ bpmClient: BpmClient; /** Current user identifier */ currentUser: string; /** Called when clicking approve button */ onApprove?: (task: Task) => void; /** Custom render for task name cell */ renderTaskName?: (task: Task) => React.ReactNode; /** Custom render for actions cell */ renderActions?: (task: Task, defaultAction: React.ReactNode) => React.ReactNode; /** Called when task list is refreshed */ onRefresh?: () => void; /** Additional class name */ className?: string; } /** * My Tasks Page - displays current user's pending tasks * * This is a shared component that can be used across different applications. * Each application sees the same UI but fetches different data based on the currentUser. */ declare function MyTasksPage({ bpmClient, currentUser, onApprove, renderTaskName, renderActions, onRefresh, className, }: MyTasksPageProps): react_jsx_runtime.JSX.Element; interface MyHistoryTasksPageProps { /** BPM client instance */ bpmClient: BpmClient; /** Current user identifier */ currentUser: string; /** Custom render for task name cell */ renderTaskName?: (task: HistoryTask) => React.ReactNode; /** Custom render for actions cell */ renderActions?: (task: HistoryTask) => React.ReactNode; /** Called when task list is refreshed */ onRefresh?: () => void; /** Additional class name */ className?: string; } /** * My History Tasks Page - displays current user's completed tasks */ declare function MyHistoryTasksPage({ bpmClient, currentUser, renderTaskName, renderActions, onRefresh, className, }: MyHistoryTasksPageProps): react_jsx_runtime.JSX.Element; interface ApproveTaskPageProps { /** Task ID to approve */ taskId: string; /** BPM client instance */ bpmClient: BpmClient; /** Render form fields based on form variables */ renderForm: (formVariables: TaskFormVariables, onFieldChange: (field: string, value: unknown) => void) => React.ReactNode; /** Called after successful approval */ onApproved?: () => void; /** Called after rejection */ onRejected?: () => void; /** Called on cancel */ onCancel?: () => void; /** Additional variables to include when completing task */ additionalVariables?: Record; /** Additional class name */ className?: string; } /** * Approve Task Page - displays task details and form for approval */ declare function ApproveTaskPage({ taskId, bpmClient, renderForm, onApproved, onRejected, onCancel, additionalVariables, className, }: ApproveTaskPageProps): react_jsx_runtime.JSX.Element; export { ApproveTaskPage, type ApproveTaskPageProps, MyHistoryTasksPage, type MyHistoryTasksPageProps, MyTasksPage, type MyTasksPageProps };