import type { EditorLocale } from "@/shared/locales";
import type { EditorErrorEvent } from "@/react/editor/types";
import "./index.css";
export interface FileUploadDialogProps {
    isOpen: boolean;
    onConfirm: (url: string, name: string) => void;
    onCancel: () => void;
    onPreUpload: (file: File) => Promise<{
        url: string;
        name: string;
    }>;
    onUpload?: (payload: {
        file: File;
        url: string;
        name: string;
    }) => void | Promise<void>;
    onError?: (event: EditorErrorEvent) => void;
    fileMaxSizeBytes?: number;
    fileUploadTypes?: string[];
    locale: EditorLocale;
    /** 为 true 时标记为编辑器焦点保活区域，避免 NotionLike 下误触发 blur 收口 */
    preserveEditorFocus?: boolean;
    /** 弹窗挂载容器，用于继承编辑器作用域主题变量 */
    portalContainer?: HTMLElement | null;
}
declare const FileUploadDialog: ({ isOpen, onConfirm, onCancel, onPreUpload, onUpload, onError, fileMaxSizeBytes, fileUploadTypes, locale, preserveEditorFocus, portalContainer, }: FileUploadDialogProps) => import("react/jsx-runtime").JSX.Element;
export default FileUploadDialog;
