import type { ButtonButtonProps } from '@gravity-ui/uikit';
import { FileUploadDialogProps } from "../FileUploadDialog/index.js";
import "./AttachmentPicker.css";
export type AttachmentPickerProps = {
    /**
     * When true, clicking the button opens the upload dialog directly.
     * When false, a dropdown menu appears with "Upload file" and "Select from storage" options.
     */
    uploadOnly?: boolean;
    disabled?: boolean;
    /** Props forwarded to FileUploadDialog (open/onClose are managed internally) */
    fileDialogProps: Omit<FileUploadDialogProps, 'open' | 'onClose'>;
    /** Called when "Select from storage" is chosen (uploadOnly=false only) */
    onSelectFromStorage?: () => void;
    /** Button size */
    buttonSize?: ButtonButtonProps['size'];
    uploadLabel?: string;
    selectFromStorageLabel?: string;
    className?: string;
};
/**
 * AttachmentPicker renders a paperclip button that either opens a file upload dialog
 * directly (uploadOnly) or shows a dropdown with upload / select-from-storage options.
 */
export declare const AttachmentPicker: ({ uploadOnly, disabled, fileDialogProps, onSelectFromStorage, buttonSize, uploadLabel, selectFromStorageLabel, className, }: AttachmentPickerProps) => import("react/jsx-runtime").JSX.Element;
