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;
    data: Array<ToastDataType>;
    close: (props?: {
        index?: number;
        id?: string;
    }) => void;
};

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