import { Component } from 'react'; import { SnackbarState, SnackbarProps, SnackbarContainerProps } from './snackbar.type'; declare class Snackbar extends Component { constructor(props: SnackbarProps & SnackbarContainerProps); static defaultProps: { placement: string; offset: number; }; /** * adds new toast in the snackbar * * @param message * @param config */ show: (message: string | JSX.Element, config?: SnackbarProps) => string; /** * updates a existing toast * * @param id * @param message * @param config */ update: (id: string, message: string | JSX.Element, config?: SnackbarProps) => void; /** * removes a toast from the snackbar * * @param id */ hide: (id: string) => void; render(): JSX.Element; } export { Snackbar };