import React from "react"; import { DialogProps, DialogHandle } from "../dialog.component"; /** Allowed status variants for the dialog heading icon. */ export type DialogHeadingStatus = "subtle" | "positive" | "negative" | "caution" | "info"; interface WithCustomHeadingProps { /** Custom heading renderer — receives the original title and subtitle */ renderHeading?: (title: React.ReactNode, subtitle: React.ReactNode) => React.ReactNode; /** Renders a status icon to the left of the title */ statusIcon?: DialogHeadingStatus; } type EnhancedDialogProps = Omit & WithCustomHeadingProps & { title?: React.ReactNode; subtitle?: React.ReactNode; }; declare function withDialogHeader(WrappedDialog: React.ForwardRefExoticComponent>): React.ForwardRefExoticComponent & WithCustomHeadingProps & { title?: React.ReactNode; subtitle?: React.ReactNode; } & React.RefAttributes>; export default withDialogHeader; export type { EnhancedDialogProps };