import * as React from "react";
import { SnackbarProps as MuiSnackbarProps } from "@material-ui/core/Snackbar";
export interface SnackbarProps extends MuiSnackbarProps {
    /** Called when the snackbar should close, either from timeout or clicking close */
    readonly onClose: () => void;
    /** Type of snackbar, for theming */
    readonly type?: "default" | "primary" | "error";
}
/**
 * Wrapper around Material UI's Snackbar component, provides pre-configured
 * themes and convenience props. Coder UI's Snackbars require a close handler,
 * since they always render a close button.
 *
 * Snackbars do _not_ automatically appear in the top-level position when
 * rendered, you'll need to use ReactDom portals or the Material UI Portal
 * component for that.
 *
 * See original component's Material UI documentation here: https://material-ui.com/components/snackbars/
 */
export declare const Snackbar: React.FC<SnackbarProps>;
