import type { Ref } from 'react'; import type { IconProps, OmitStrict, StandardTreeNode, StandardTreeProps, TestIdProp, TreeNode } from '@pega/cosmos-react-core'; export interface CaseHierarchyNode extends OmitStrict { nodes?: CaseHierarchyNode[]; caseTypeId?: string; } export interface CaseHierarchyProps extends OmitStrict, TestIdProp { nodes: CaseHierarchyNode[]; /** Heading shown on the Card wrapping the component. */ heading: string; /** The icon rendered as part of the header. If not set will default to 'folder-nested'. */ icon?: IconProps['name']; /** The currently selected case, will be highlighted by default. */ currentCaseId?: TreeNode['id']; /** If set, a progress indicator will render in place of the component. */ loading?: boolean; /** If set, an error state will render in place of the component. */ error?: boolean; /** Will render the provided number in a count badge next to the heading. */ count?: number; /** If set, will render a search input above the tree to search nodes. */ search?: { value: string; handler: (value: string) => void; }; /** A ref to the wrapping element. */ ref?: Ref; } //# sourceMappingURL=CaseHierarchy.types.d.ts.map