import './ErrorView.scss'; export type ErrorViewerProps = { /** The message to display in the error view */ message: string; /** Set to true if you want the error view to display expanded. Will not show the Show More/Less buttons if true. Defaults to false. */ isExpanded?: boolean; /** The type of error message to display in the header. Defaults to Error. */ type?: string; /** Optional callback to dismiss the error. If provided, a Dismiss button will be displayed. It is up to the parent to implement the logic to dismiss the error. */ onDismiss?: () => void; }; /** * Component that displays an error message in a textarea so user can scroll and a copy button. */ declare function ErrorView({ message, isExpanded: isExpandedProp, type, onDismiss, }: ErrorViewerProps): JSX.Element; export default ErrorView; //# sourceMappingURL=ErrorView.d.ts.map