import { ModuleWithProviders } from '@angular/core'; import { ComponentType, Overlay, LiveAnnouncer } from '../core'; import { MdSnackBarConfig } from './snack-bar-config'; import { MdSnackBarRef } from './snack-bar-ref'; import { SimpleSnackBar } from './simple-snack-bar'; /** * Service to dispatch Material Design snack bar messages. */ export declare class MdSnackBar { private _overlay; private _live; /** A reference to the current snack bar in the view. */ private _snackBarRef; constructor(_overlay: Overlay, _live: LiveAnnouncer); /** * Creates and dispatches a snack bar with a custom component for the content, removing any * currently opened snack bars. * * @param component Component to be instantiated. * @param config Extra configuration for the snack bar. */ openFromComponent(component: ComponentType, config?: MdSnackBarConfig): MdSnackBarRef; /** * Opens a snackbar with a message and an optional action. * @param message The message to show in the snackbar. * @param action The label for the snackbar action. * @param config Additional configuration options for the snackbar. */ open(message: string, action?: string, config?: MdSnackBarConfig): MdSnackBarRef; /** * Attaches the snack bar container component to the overlay. */ private _attachSnackBarContainer(overlayRef, config); /** * Places a new component as the content of the snack bar container. */ private _attachSnackbarContent(component, container, overlayRef); /** * Creates a new overlay and places it in the correct location. */ private _createOverlay(); } export declare class MdSnackBarModule { static forRoot(): ModuleWithProviders; }