import { MaybeFunction, UseToastPromiseOption } from "./toast"; import type { ToastId } from "./toast.types"; import type { UseToastOptions } from "./use-toast"; import type { ToastStore } from "./toast.store"; export declare function createToastFn(toastStore: ToastStore, dir: "ltr" | "rtl", defaultOptions?: UseToastOptions): { (options?: UseToastOptions): ToastId; update(id: ToastId, options: Omit): void; promise(promise: Promise, options: { success: MaybeFunction; error: MaybeFunction; loading: UseToastPromiseOption; }): void; closeAll: (options?: import("./toast.types").CloseAllToastsOptions | undefined) => void; close: (id: ToastId) => void; isActive: (id: ToastId) => boolean; }; export type CreateToastFnReturn = ReturnType;