import type { Field, UIField } from 'payload'; export type BaseConfig = { message: string; type: 'alert' | 'error' | 'info'; }; export type Config = { className?: string; icon?: { enable?: boolean; }; } & BaseConfig; interface BetterUIField extends Omit { admin?: UIField['admin']; } type AlertBox = (overrides: { /** * Config for the alert box. * Type defaults to 'info' */ config: Config; /** * Field overrides */ overrides: BetterUIField; }) => Field[]; export declare const AlertBoxField: AlertBox; export {};