import { type ViewStyle } from 'react-native'; import type { ButtonVariant } from '@coinbase/cds-common/types/ButtonBaseProps'; import type { IllustrationPictogramNames } from '@coinbase/cds-common/types/IllustrationNames'; import type { SharedProps } from '@coinbase/cds-common/types/SharedProps'; import type { ModalBaseProps, ModalRefBaseProps } from './modal/Modal'; export type AlertBaseProps = SharedProps & Pick & { /** * Alert title */ title: string; /** * Alert body/description */ body: string; /** * Illustration pictogram name for alert */ pictogram?: IllustrationPictogramNames; /** * Label of the preferred action */ preferredActionLabel: string; /** * Callback function fired when the preferred action is pressed */ onPreferredActionPress?: () => void; /** * Button variant of the preferred action * @default primary */ preferredActionVariant?: Extract; /** * Label of the dismiss action */ dismissActionLabel?: string; /** * Callback function fired when the dismiss action is pressed */ onDismissActionPress?: () => void; /** * Layout of the actions * @default horizontal */ actionLayout?: 'horizontal' | 'vertical'; zIndex?: ViewStyle['zIndex']; }; export type AlertProps = AlertBaseProps; export declare const Alert: import('react').MemoExoticComponent< ({ ref, ..._props }: AlertProps & { ref?: React.Ref; }) => import('react/jsx-runtime').JSX.Element >; //# sourceMappingURL=Alert.d.ts.map