import * as React from 'react';
import { type NoticeVariant } from '../../components/Notice/notice';
/**
 * Toast — 非阻斷式浮動通知
 *
 * ── Container 三層結構（所有 variant 統一） ──
 *
 * 1. Shadow wrapper: rounded-lg + elevation-200（永遠在頁面 theme 解析）
 * 2. Bg layer: bg-{color}（有色相 variant 在頁面 theme 解析）
 * 3. Theme layer: data-theme + text-foreground（content token re-resolve）
 *
 * neutral/success(inverse): bg + theme 同層（bg-surface-raised 需要跟 data-theme 一起翻轉）
 * info/error(dark): bg 在 outer,theme 在 inner
 * warning(light always): bg 在 outer,theme="light" 在 inner
 */
export type ToastVariant = NoticeVariant;
export interface ToastOptions {
    variant?: ToastVariant;
    title: string;
    description?: string;
    action?: {
        label: string;
        onClick: () => void;
    };
    duration?: number;
}
export declare function toast(options: ToastOptions): string | number;
export interface ToasterProps {
    position?: 'top-left' | 'top-right' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center';
}
declare const Toaster: React.ForwardRefExoticComponent<ToasterProps & React.RefAttributes<HTMLDivElement>>;
export declare const toastMeta: {
    readonly component: "Toast";
    readonly family: 2;
    readonly variants: {
        readonly neutral: {
            readonly when: "非狀態通知;一般 announcement / tip";
        };
        readonly info: {
            readonly when: "資訊性提示(新版本 / 同步完成)";
        };
        readonly success: {
            readonly when: "成功確認(已寄送 / 付款完成)";
        };
        readonly warning: {
            readonly when: "可恢復警告(未儲存 / 連線不穩)";
        };
        readonly error: {
            readonly when: "錯誤(匯入失敗 / 權限不足);action prop 可加重試";
        };
    };
    readonly sizes: {};
    readonly states: readonly ["default", "hover", "active", "focus-visible", "disabled"];
    readonly tokens: {
        readonly bg: readonly ["bg-error", "bg-info", "bg-surface-raised", "bg-warning"];
        readonly fg: readonly ["text-foreground"];
        readonly ring: readonly [];
    };
};
export { Toaster };
//# sourceMappingURL=toast.d.ts.map