import type { Ref } from 'react'; import type { ForwardRefForwardPropsComponent, BaseProps, TestIdProp, NoChildrenProp, ErrorStateProps } from '@pega/cosmos-react-core'; import type { CaseViewProps } from '../CaseView'; import type { CaseViewContextValue } from '../CaseView/CaseView.types'; export interface CasePreviewProps extends Pick, NoChildrenProp, TestIdProp, BaseProps { /** A set of props including an href that will be forwarded to the case preview's heading and subheading. */ caseLink?: CaseViewContextValue['caseLink']; /** If true, the Case Preview will be visible. */ open: boolean; /** If true, the Case Preview will render in a progress state. */ progress?: boolean; /** If true, the Case Preview will render in an error state. */ error?: boolean; /** Callback fired when "Try again" button is clicked in an error state. */ onErrorRetry?: ErrorStateProps['onRetry']; /** Callback fired before Case Preview opens. */ onBeforeOpen?: () => void; /** Callback fired after Case Preview opens. */ onAfterOpen?: () => void; /** Callback fired before Case Preview closes. */ onBeforeClose?: () => void; /** Callback fired after Case Preview closes. */ onAfterClose?: () => void; /** Callback fired when a click action occurs outside of the Case Preview. */ onOuterClick?: () => void; /** Renders the preview content in place instead of using the global preview panel. */ inline?: boolean; /** Reference to the wrapping element. */ ref?: Ref; } declare const _default: ForwardRefForwardPropsComponent & { getTestIds: (testIdProp?: TestIdProp["testId"]) => import("@pega/cosmos-react-core").TestIdsRecord; }; export default _default; //# sourceMappingURL=CasePreview.d.ts.map