import type { SnackbarAction, SnackbarMessageType } from "@rebasepro/cms-types"; import React from "react"; /** * Hook to retrieve the SnackbarContext. * * Consider that in order to use this hook you need to have a parent * `Rebase` * * @see SnackbarController * @group Hooks and utilities */ export declare const useSnackbarController: () => { open: (props: { type: SnackbarMessageType; title?: string; message: React.ReactNode; autoHideDuration?: number; action?: SnackbarAction; }) => void; close: () => void; };