import {
    type ToastInternalProps
} from "../components/toast/type";

export type ToastType = {
    data?: Array<ToastDataType>;
};

export type ToastDataType = Omit<ToastInternalProps, "id"> & {
    id?: string;
};

export type ToastContextType = {
    open: (toastData: ToastDataType) => string;
    close: (props?: {
        index?: number;
        id?: string;
    }) => void;
    data: Array<ToastDataType>;
};

export type ToastStateContextType = {
    data: Array<ToastDataType>;
};
