12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { App } from '../app/app';
  2. import { AlertButton, AlertInputOptions, AlertOptions } from './alert-options';
  3. import { Config } from '../../config/config';
  4. import { NavOptions } from '../../navigation/nav-util';
  5. import { ViewController } from '../../navigation/view-controller';
  6. /**
  7. * @hidden
  8. */
  9. export declare class Alert extends ViewController {
  10. private _app;
  11. constructor(app: App, opts: AlertOptions, config: Config);
  12. /**
  13. * @hidden
  14. */
  15. getTransitionName(direction: string): string;
  16. /**
  17. * @param {string} title Alert title
  18. */
  19. setTitle(title: string): Alert;
  20. /**
  21. * @param {string} subTitle Alert subtitle
  22. */
  23. setSubTitle(subTitle: string): Alert;
  24. /**
  25. * @param {string} message Alert message content
  26. */
  27. setMessage(message: string): Alert;
  28. /**
  29. * @param {object} input Alert input
  30. */
  31. addInput(input: AlertInputOptions): Alert;
  32. /**
  33. * @param {any} button Alert button
  34. */
  35. addButton(button: AlertButton | string): Alert;
  36. /**
  37. * @param {string} cssClass Set the CSS class names on the alert's outer wrapper.
  38. */
  39. setCssClass(cssClass: string): Alert;
  40. /**
  41. * @param {string} mode Set the mode of the alert (ios, md, wp).
  42. */
  43. setMode(mode: string): void;
  44. /**
  45. * Present the alert instance.
  46. *
  47. * @param {NavOptions} [navOptions={}] Nav options to go with this transition.
  48. * @returns {Promise} Returns a promise which is resolved when the transition has completed.
  49. */
  50. present(navOptions?: NavOptions): Promise<any>;
  51. }