import type { ReactNode, Ref, MouseEvent } from 'react'; import type { TestIdProp, ActionsProps, HeadingTag } from '@pega/cosmos-react-core'; export interface TaskItemProps extends TestIdProp { id: string; /** Name of the task displayed in the list. */ name: string; /** Name of the process for the task. */ processName?: string; /** The heading tag to render task name and process as. */ headingTag?: HeadingTag; /** Avatar element to represent the task's assignee. */ avatar?: ReactNode; /** MetaList element with info related to the task. */ meta?: ReactNode; /** Provide a callback to render a button for a task. */ onOpen?: (id: TaskItemProps['id'], e: MouseEvent) => void; /** Case identifier */ caseId?: string; /** Content for the task when open. */ content?: ReactNode; /** An array of actions to add to open task. */ additionalActions?: ActionsProps['items']; /** Label for the open button */ openLabel?: string; /** * When true, animates the content expanding in. * @default true */ animateOpen?: boolean; /** * When true, renders the open button as a compact icon-only arrow button. * @default false */ openButtonIconOnly?: boolean; } export interface TaskListProps extends TestIdProp { items: TaskItemProps[]; hasFooter?: boolean; /** * When true, all task items render the open button as a compact icon-only arrow. * @default false */ openButtonIconOnly?: boolean; /** Ref for the wrapping element. */ ref?: Ref; } interface Announcement { name: string; status: 'removed' | 'added'; } export declare const StyledTaskList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute, HTMLUListElement>, { hasFooter: boolean; }>> & string; export declare const TaskItem: (({ testId, id, name, avatar, meta, processName, onOpen, caseId, content, headingTag, addAnnouncement, additionalActions, openLabel, animateOpen, openButtonIconOnly, ...restProps }: TaskItemProps & { addAnnouncement?: (announcement: Announcement) => void; }) => import("react/jsx-runtime").JSX.Element) & { getTestIds: (testIdProp?: TestIdProp["testId"]) => import("@pega/cosmos-react-core").TestIdsRecord; }; declare const _default: import("react").ForwardRefExoticComponent & import("react").RefAttributes> & { getTestIds: (testIdProp?: TestIdProp["testId"]) => import("@pega/cosmos-react-core").TestIdsRecord; }; export default _default; //# sourceMappingURL=TaskList.d.ts.map