import { default as DapDSSnackbar } from './snackbar.component'; export { default as DapDSSnackbar } from './snackbar.component'; export { default as DapDSSnackbarMessage } from './snackbar-message.component'; /** * Global snackbar service for use in any framework or vanilla JS * * Usage in React: * ```tsx * import { snackbar } from 'dap-design-system/snackbar' * * const MyComponent = () => { * const handleSave = async () => { * try { * await saveData() * snackbar.success('Data saved successfully!') * } catch (error) { * snackbar.error('Failed to save data') * } * } * * return * } * ``` * * Usage in Vue: * ```vue * * ``` * * Usage in Angular: * ```typescript * import { snackbar } from 'dap-design-system/snackbar' * * export class MyComponent { * onClick() { * snackbar.success('Action completed') * } * } * ``` */ export declare const snackbar: { /** * Show a general message */ show: typeof DapDSSnackbar.show; /** * Show a success message */ success: typeof DapDSSnackbar.success; /** * Show an error message */ error: typeof DapDSSnackbar.error; /** * Show an information message */ info: typeof DapDSSnackbar.info; /** * Show a default message */ default: typeof DapDSSnackbar.default; /** * Close all snackbar messages */ closeAll: typeof DapDSSnackbar.closeAll; }; export default snackbar;