export { ConsoleLoggerAdapter, LogEntry, LogLevel, Logger, LoggerAdapter, LoggerConfig, createLogger, logger } from './logger/index.js';
import * as React$1 from 'react';
import React__default, { ReactNode } from 'react';
export { arrayUtils, cn, debugUtils, errorUtils, fileUtils, formatTime, japaneseUtils, stringUtils, validators } from './utils/index.js';
import * as class_variance_authority_types from 'class-variance-authority/types';
import { VariantProps } from 'class-variance-authority';
import * as LabelPrimitive from '@radix-ui/react-label';
import * as TabsPrimitive from '@radix-ui/react-tabs';
import * as DialogPrimitive from '@radix-ui/react-dialog';
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
import * as PopoverPrimitive from '@radix-ui/react-popover';
import * as ProgressPrimitive from '@radix-ui/react-progress';
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
import * as SelectPrimitive from '@radix-ui/react-select';
import * as SeparatorPrimitive from '@radix-ui/react-separator';
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
import * as AvatarPrimitive from '@radix-ui/react-avatar';
import { B as BaseApiClient } from './base-api-client-B-yUCal3.js';
export { S as StorageAdapter, a as StorageChangeEvent } from './types-BaZccpvk.js';
export { b as useAsyncStorage, d as useElectronStorage, a as useLocalStorage, u as useStorage, c as useTaroStorage } from './useElectronStorage-DwnNfIhl.js';
import 'clsx';
import './types-CbTsi9CZ.js';
import './types-Dlu52uDy.js';
import './enums-Dume-V5Y.js';
import 'drizzle-orm/pg-core';

interface OCRResult {
    text: string;
    confidence: number;
    words: Array<{
        text: string;
        confidence: number;
        bbox: {
            x0: number;
            y0: number;
            x1: number;
            y1: number;
        };
    }>;
    lines: string[];
}
interface OCROptions {
    language?: string;
    logger?: (message: any) => void;
}
interface OCRState {
    isProcessing: boolean;
    progress: number;
    status: string;
    error: Error | null;
    result: OCRResult | null;
}

declare const useOCR: (options?: OCROptions) => {
    recognize: (image: string | File | Blob | HTMLImageElement | HTMLCanvasElement) => Promise<OCRResult>;
    cleanup: () => Promise<void>;
    isProcessing: boolean;
    progress: number;
    status: string;
    error: Error | null;
    result: OCRResult | null;
};

interface OCRScannerProps {
    onResult?: (text: string) => void;
    className?: string;
    language?: string;
}
declare const OCRScanner: React__default.FC<OCRScannerProps>;

interface BackgroundRemovalOptions {
    progress?: (status: string, progress: number) => void;
    model?: 'medium' | 'small';
    publicPath?: string;
    fetchArgs?: RequestInit;
}
interface BackgroundRemovalState {
    isProcessing: boolean;
    progress: number;
    status: string;
    error: Error | null;
    resultBlob: Blob | null;
    resultUrl: string | null;
}

declare const useBackgroundRemoval: (options?: BackgroundRemovalOptions) => {
    remove: (image: string | File | Blob | HTMLImageElement | URL) => Promise<{
        blob: Blob;
        url: string;
    }>;
    cleanup: () => void;
    isProcessing: boolean;
    progress: number;
    status: string;
    error: Error | null;
    resultBlob: Blob | null;
    resultUrl: string | null;
};

interface BackgroundRemoverProps {
    onResult?: (blob: Blob, url: string) => void;
    className?: string;
}
declare const BackgroundRemover: React__default.FC<BackgroundRemoverProps>;

interface SentimentResult {
    label: string;
    score: number;
    sentiment: 'positive' | 'negative' | 'neutral';
}
interface SentimentOptions {
    model?: string;
    language?: 'en' | 'zh' | 'auto';
}
interface SentimentState {
    isProcessing: boolean;
    status: string;
    error: Error | null;
    result: SentimentResult | null;
}

declare const useSentimentAnalysis: (options?: SentimentOptions) => {
    analyze: (text: string) => Promise<SentimentResult>;
    isProcessing: boolean;
    status: string;
    error: Error | null;
    result: SentimentResult | null;
};

interface SentimentAnalyzerProps {
    onResult?: (result: any) => void;
    className?: string;
    placeholder?: string;
}
declare const SentimentAnalyzer: React__default.FC<SentimentAnalyzerProps>;

interface TextGenerationOptions {
    model?: string;
    max_new_tokens?: number;
    temperature?: number;
    top_p?: number;
}
interface TextGenerationState {
    isProcessing: boolean;
    status: string;
    error: Error | null;
    result: string | null;
}

declare const useTextGeneration: (options?: TextGenerationOptions) => {
    generate: (prompt: string) => Promise<any>;
    isProcessing: boolean;
    status: string;
    error: Error | null;
    result: string | null;
};

interface SmartAssistantProps {
    className?: string;
}
declare const SmartAssistant: React__default.FC<SmartAssistantProps>;

declare const buttonVariants: (props?: ({
    variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
    size?: "default" | "sm" | "lg" | "icon" | null | undefined;
} & class_variance_authority_types.ClassProp) | undefined) => string;
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
    variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
    size?: 'default' | 'sm' | 'lg' | 'icon';
    asChild?: boolean;
}
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;

declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;

declare const badgeVariants: (props?: ({
    variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
} & class_variance_authority_types.ClassProp) | undefined) => string;
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
}
declare function Badge({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;

declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;

declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;

declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;

declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const DialogHeader: {
    ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
    displayName: string;
};
declare const DialogFooter: {
    ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
    displayName: string;
};
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;

declare const AlertDialog: React$1.FC<AlertDialogPrimitive.AlertDialogProps>;
declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
declare const AlertDialogPortal: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
declare const AlertDialogOverlay: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const AlertDialogContent: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const AlertDialogHeader: {
    ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
    displayName: string;
};
declare const AlertDialogFooter: {
    ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
    displayName: string;
};
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;

declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
    inset?: boolean;
} & React$1.RefAttributes<HTMLDivElement>>;
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
    inset?: boolean;
} & React$1.RefAttributes<HTMLDivElement>>;
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
    inset?: boolean;
} & React$1.RefAttributes<HTMLDivElement>>;
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const DropdownMenuShortcut: {
    ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
    displayName: string;
};

declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
declare const PopoverAnchor: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React$1.RefAttributes<HTMLDivElement>>;
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;

declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;

declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;

declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;

declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;

declare const Sheet: React$1.FC<DialogPrimitive.DialogProps>;
declare const SheetTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
declare const sheetVariants: (props?: ({
    side?: "top" | "bottom" | "left" | "right" | null | undefined;
} & class_variance_authority_types.ClassProp) | undefined) => string;
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
}
declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
declare const SheetHeader: {
    ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
    displayName: string;
};
declare const SheetFooter: {
    ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
    displayName: string;
};
declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;

declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;

declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;

declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;

/** 基础网格项接口 */
interface GridItem {
    id: string;
    [key: string]: any;
}
/** 网格列数配置 */
interface GridColumns {
    /** 小屏幕列数 (640px+) */
    sm?: number;
    /** 中等屏幕列数 (768px+) */
    md?: number;
    /** 大屏幕列数 (1024px+) */
    lg?: number;
    /** 超大屏幕列数 (1280px+) */
    xl?: number;
}
/** 网格间距类型 */
type GridGap = 'sm' | 'md' | 'lg' | 'xl';
/** 通用网格组件 Props */
interface GridProps<T extends GridItem> {
    /** 数据项数组 */
    items: T[];
    /** 渲染函数 */
    renderItem: (item: T, index: number) => React__default.ReactNode;
    /** 网格列数配置 */
    columns?: GridColumns;
    /** 间距配置 */
    gap?: GridGap;
    /** 额外的容器类名 */
    className?: string;
    /** 容器样式 */
    style?: React__default.CSSProperties;
}
/** 通用网格组件 */
declare function Grid<T extends GridItem>({ items, renderItem, columns, gap, className, style }: GridProps<T>): React__default.JSX.Element;

interface SearchBoxProps {
    searchQuery: string;
    onSearchChange: (query: string) => void;
    placeholder?: string;
    size?: 'small' | 'medium' | 'large';
}
declare const SearchBox: React__default.FC<SearchBoxProps>;

interface TimelineItem {
    date: string;
    title: string;
    description: string;
}
interface TimelineConfig {
    items: TimelineItem[];
}
interface TimelineProps {
    items?: TimelineItem[];
}
declare const Timeline: React__default.FC<TimelineProps>;

interface Ball {
    x: number;
    y: number;
    vx: number;
    vy: number;
    radius: number;
    color: string;
    text?: string;
    isDragging?: boolean;
}
interface CollisionBallsConfig {
    balls: {
        id: string;
        label: string;
        color: string;
        size: number;
    }[];
    width: number;
    height: number;
}
interface CollisionBallsProps {
    collisionBallsConfig: CollisionBallsConfig;
}
declare const CollisionBalls: React__default.FC<CollisionBallsProps>;

interface OrderableItem {
    id: number;
    [key: string]: any;
}
interface OrderManagerOperations<T extends OrderableItem> {
    loadItems: () => Promise<T[]>;
    moveItemUp: (id: number) => Promise<void>;
    moveItemDown: (id: number) => Promise<void>;
    updateItemOrder: (orders: {
        id: number;
        order: number;
    }[]) => Promise<void>;
}
interface GenericOrderManagerProps<T extends OrderableItem> {
    operations: OrderManagerOperations<T>;
    renderItem: (item: T, index: number, isFirst: boolean, isLast: boolean) => React__default.ReactNode;
    className?: string;
    title?: string;
    description?: string;
    onOrderChanged?: () => void;
    emptyMessage?: string;
    loadingMessage?: string;
}
declare function GenericOrderManager<T extends OrderableItem>({ operations, renderItem, className, title, description, onOrderChanged, emptyMessage, loadingMessage }: GenericOrderManagerProps<T>): React__default.JSX.Element;

interface BackButtonProps {
    href?: string;
    className?: string;
}
declare const BackButton: React__default.FC<BackButtonProps>;

interface FilterOption<T> {
    value: T;
    label: string;
    icon: string;
    activeColor: {
        bg: string;
        shadow: string;
    };
    count?: number;
    showCount?: boolean;
}
interface FilterButtonGroupProps<T> {
    label: string;
    value: T;
    options: FilterOption<T>[];
    onChange: (value: T) => void;
    className?: string;
}
declare function FilterButtonGroup<T extends string>({ label, value, options, onChange, className }: FilterButtonGroupProps<T>): React__default.JSX.Element;

interface SearchResultHintProps {
    searchQuery: string;
    resultCount: number;
    className?: string;
}
declare function SearchResultHint({ searchQuery, resultCount, className }: SearchResultHintProps): React__default.JSX.Element | null;

interface ModalProps {
    isOpen: boolean;
    onClose: () => void;
    title?: string;
    width?: number | string;
    className?: string;
    maskClosable?: boolean;
    children: React__default.ReactNode;
    zIndex?: number;
}
declare const Modal: React__default.FC<ModalProps>;
interface ConfirmModalProps {
    isOpen: boolean;
    onClose: () => void;
    onConfirm: () => void;
    title?: string;
    message: string;
    confirmText?: string;
    cancelText?: string;
    isLoading?: boolean;
}
declare const ConfirmModal: React__default.FC<ConfirmModalProps>;

interface SocialLink {
    type: string;
    url: string;
    icon?: ReactNode;
}
interface ProfileData {
    name: string;
    avatar?: string;
    title?: string;
    bio?: string;
    contacts?: Record<string, string>;
    socialLinks?: SocialLink[];
    customContent?: ReactNode;
    badges?: ProfileBadge[];
    stats?: Stat[];
}
interface ProfileBadge {
    label: string;
    type?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
    icon?: ReactNode;
}
interface Stat {
    label: string;
    value: string | number;
    icon?: ReactNode;
}

interface ProfileButtonProps {
    data?: ProfileData;
    buttonText?: string;
    variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
    size?: 'default' | 'sm' | 'lg' | 'icon';
    className?: string;
    modalTheme?: 'light' | 'dark' | 'blue';
}
/**
 * 个人信息按钮组件，点击后显示个人信息弹窗
 */
declare const ProfileButton: React__default.FC<ProfileButtonProps>;

interface ProfileModalProps {
    isOpen: boolean;
    onClose: () => void;
    data: ProfileData;
    showAvatar?: boolean;
    showContacts?: boolean;
    showSocial?: boolean;
    showBio?: boolean;
    avatarSize?: number;
    onAvatarClick?: () => void;
    onSocialLinkClick?: (url: string, type: string) => void;
    onContactClick?: (type: string, value: string) => void;
    themeName?: 'light' | 'dark' | 'blue';
    className?: string;
    children?: React__default.ReactNode;
}
declare const ProfileModal: React__default.FC<ProfileModalProps>;

interface AutoOpenModalProps {
    data: ProfileData;
    delay?: number;
    themeName?: 'light' | 'dark' | 'blue';
    onClose?: () => void;
}
/**
 * 自动打开个人信息弹窗组件
 * 页面加载后自动显示弹窗
 */
declare const AutoOpenModal: React__default.FC<AutoOpenModalProps>;

interface EnhancedAvatarProps {
    src?: string;
    name?: string;
    size?: 'small' | 'medium' | 'large' | number;
    mood?: 'online' | 'offline' | 'away';
    statusText?: string;
    onClick?: () => void;
    className?: string;
}
declare const EnhancedAvatar: React__default.FC<EnhancedAvatarProps>;

interface AboutProps {
    timelineConfig: TimelineConfig;
    collisionBallsConfig: CollisionBallsConfig;
}
declare const About: React__default.FC<AboutProps>;

declare const Contact: React__default.FC;

interface HomeConfig {
    title: string;
    subtitle: string;
    buttons: Array<{
        text: string;
        link: string;
    }>;
    imageSrc: string;
}
interface HomeProps {
    homeConfig: HomeConfig;
    className?: string;
}
declare const Home: React__default.FC<HomeProps>;

interface ExperimentCardProps {
    href: string;
    title: string;
    description: string;
    tags: string[];
    category: 'utility' | 'leisure';
    isCompleted?: boolean;
    updatedAt?: string;
    createdAt?: string;
    className?: string;
}
declare const ExperimentCard: React__default.FC<ExperimentCardProps>;

interface Project {
    id: string;
    title: string;
    description: string;
    image: string;
    link?: string;
    tags: string[];
}
interface ProjectsConfig {
    projects: Project[];
}
interface ProjectCarouselProps {
    projects: Project[];
    className?: string;
}
declare const ProjectCarousel: React__default.FC<ProjectCarouselProps>;

type NavigationDirection = 'horizontal' | 'vertical';
type NavigationPosition = 'top' | 'bottom' | 'left' | 'right';
interface NavigationItem {
    id: string;
    label: string;
    href: string;
    icon?: React.ReactNode;
    isExternal?: boolean;
    target?: '_blank' | '_self';
}
interface NavigationConfig {
    direction: NavigationDirection;
    position: NavigationPosition;
    items: NavigationItem[];
    avatar?: {
        src: string;
        alt?: string;
    };
    logo?: {
        src: string;
        alt?: string;
    };
}
interface NavigationProps {
    config: NavigationConfig;
    isOpen: boolean;
    onToggle: () => void;
    activeItemId?: string;
    onItemClick?: (item: NavigationItem) => void;
    className?: string;
}

declare const Navigation: React__default.FC<NavigationProps>;

interface NavigationItemProps {
    item: NavigationItem;
    direction: NavigationDirection;
    isActive?: boolean;
    onClick: (item: NavigationItem) => void;
}
declare const NavigationItemComponent: React__default.FC<NavigationItemProps>;

interface NavigationToggleProps {
    isOpen: boolean;
    onClick: () => void;
    position: NavigationPosition;
}
declare const NavigationToggle: React__default.FC<NavigationToggleProps>;

interface FloatingMenuProps {
    /**
     * 触发按钮的内容
     */
    trigger: ReactNode;
    /**
     * 菜单内容
     */
    menu: ReactNode;
    /**
     * 初始位置
     */
    initialPosition?: {
        x: number;
        y: number;
    };
    /**
     * 是否默认打开菜单
     */
    defaultOpen?: boolean;
    /**
     * 自定义类名
     */
    className?: string;
    /**
     * 菜单类名
     */
    menuClassName?: string;
    /**
     * 触发器类名
     */
    triggerClassName?: string;
    /**
     * z-index
     */
    zIndex?: number;
}
declare const FloatingMenu: React__default.FC<FloatingMenuProps>;

declare const FloatingMenuExample: React__default.FC;

/**
 * 实验田模块类型定义
 */
/**
 * 实验项目类别
 */
type ExperimentCategory = 'utility' | 'leisure';
/**
 * 实验项目接口
 */
interface ExperimentItem {
    /** 项目唯一标识 */
    id: string;
    /** 项目标题 */
    title: string;
    /** 项目描述 */
    description: string;
    /** 项目路径 */
    path: string;
    /** 项目标签 */
    tags: string[];
    /** 项目类别 */
    category: ExperimentCategory;
    /** 是否已完成 */
    isCompleted?: boolean;
    /** 创建时间 */
    createdAt?: string;
    /** 更新时间 */
    updatedAt?: string;
    /** 用户自定义排序索引 */
    userOrder?: number;
}
/**
 * 实验田视图模式
 */
type ViewMode = 'all' | 'utility' | 'leisure';
/**
 * 完成状态筛选选项
 */
type CompletionFilter = 'all' | 'completed' | 'incomplete';
/**
 * 排序模式
 */
type SortMode = 'auto' | 'manual';
/**
 * 实验田搜索和筛选配置
 */
interface TestFieldConfig {
    /** 当前视图模式 */
    viewMode: ViewMode;
    /** 搜索查询 */
    searchQuery: string;
    /** 完成状态筛选 */
    completionFilter: CompletionFilter;
    /** 排序方式 */
    sortBy: 'title' | 'category' | 'createdAt' | 'updatedAt' | 'completion';
    /** 排序方向 */
    sortOrder: 'asc' | 'desc';
    /** 排序模式 */
    sortMode: SortMode;
}
/**
 * 实验田页面属性
 */
interface TestFieldPageProps {
    /** 初始配置 */
    initialConfig?: Partial<TestFieldConfig>;
    /** 实验项目列表 */
    experiments?: ExperimentItem[];
}

interface CategoryFilterProps {
    viewMode: ViewMode;
    onViewModeChange: (mode: ViewMode) => void;
    counts: {
        utility: number;
        leisure: number;
    };
    className?: string;
}
declare const CategoryFilter: React__default.FC<CategoryFilterProps>;

interface CompletionFilterProps {
    completionFilter: CompletionFilter;
    onCompletionFilterChange: (filter: CompletionFilter) => void;
    counts: {
        all: number;
        completed: number;
        inProgress: number;
    };
    className?: string;
}
declare const CompletionFilterComponent: React__default.FC<CompletionFilterProps>;

interface PageHeaderProps {
    counts: {
        all: number;
        utility: number;
        leisure: number;
        completed: number;
    };
    className?: string;
}
declare const PageHeader: React__default.FC<PageHeaderProps>;

/** 实验项目网格项接口 */
interface ExperimentGridItem extends GridItem {
    title: string;
    description: string;
    path: string;
    tags: string[];
    category: string;
    isCompleted?: boolean;
    updatedAt?: string;
    createdAt?: string;
}
/** 实验项目网格组件 Props */
interface ExperimentGridProps<T extends ExperimentGridItem> {
    /** 数据项数组 */
    items: T[];
    /** 自定义渲染函数（可选） */
    renderItem?: (item: T, index: number) => React__default.ReactNode;
    /** 网格列数配置（可选） */
    columns?: GridColumns;
    /** 间距配置（可选） */
    gap?: GridGap;
    /** 额外的容器类名 */
    className?: string;
}
/** 实验项目网格组件 */
declare function ExperimentGrid<T extends ExperimentGridItem>({ items, renderItem, columns, gap, className }: ExperimentGridProps<T>): React__default.JSX.Element;
/** 为了向后兼容，导出一个专门用于 ExperimentItem 的组件 */
declare function ExperimentItemGrid({ experiments, ...props }: Omit<ExperimentGridProps<ExperimentItem>, 'items'> & {
    experiments: ExperimentItem[];
}): React__default.JSX.Element;

interface EmptyStateProps {
    searchQuery: string;
    onClearSearch: () => void;
    className?: string;
}
declare const EmptyState: React__default.FC<EmptyStateProps>;

interface SortControlProps {
    sortBy: TestFieldConfig['sortBy'];
    sortOrder: TestFieldConfig['sortOrder'];
    onSortByChange: (sortBy: TestFieldConfig['sortBy']) => void;
    onSortOrderChange: (sortOrder: TestFieldConfig['sortOrder']) => void;
}
declare const SortControl: React__default.FC<SortControlProps>;

interface SortModeToggleProps {
    sortMode: SortMode;
    onSortModeChange: (mode: SortMode) => void;
}
declare const SortModeToggle: React__default.FC<SortModeToggleProps>;

interface DraggableExperimentGridProps {
    items: ExperimentItem[];
    onOrderChange?: (items: ExperimentItem[]) => void;
    className?: string;
}
declare const DraggableExperimentGrid: React__default.FC<DraggableExperimentGridProps>;

interface SortableExperimentItemProps {
    item: ExperimentItem;
    onMoveUp?: () => void;
    onMoveDown?: () => void;
    isFirst?: boolean;
    isLast?: boolean;
}
declare const SortableExperimentItem: React__default.FC<SortableExperimentItemProps>;

interface PermissionGuardProps {
    children: React__default.ReactNode;
    fallback?: React__default.ReactNode;
    apiClient: BaseApiClient;
}
declare const PermissionGuard: React__default.FC<PermissionGuardProps>;

interface UserInfoBarProps {
    apiClient: BaseApiClient;
}
declare const UserInfoBar: React__default.FC<UserInfoBarProps>;

/**
 * 实验田模块工具函数
 */

/**
 * 过滤实验项目
 */
declare function filterExperiments(experiments: ExperimentItem[], config: Partial<TestFieldConfig>): ExperimentItem[];
/**
 * 排序实验项目
 */
declare function sortExperiments(experiments: ExperimentItem[], sortBy?: TestFieldConfig['sortBy'], sortOrder?: TestFieldConfig['sortOrder']): ExperimentItem[];
/**
 * 获取所有标签
 */
declare function getAllTags(experiments: ExperimentItem[]): string[];
/**
 * 根据类别统计实验项目数量
 */
declare function getExperimentCounts(experiments: ExperimentItem[]): {
    all: number;
    utility: number;
    leisure: number;
    completed: number;
    inProgress: number;
};
/**
 * 验证实验项目数据
 */
declare function validateExperiment(experiment: Partial<ExperimentItem>): boolean;
/**
 * 获取类别显示名称
 */
declare function getCategoryDisplayName(category: ViewMode): string;
/**
 * 获取类别颜色
 */
declare function getCategoryColor(category: ExperimentItem['category']): string;
/**
 * 获取完成状态显示名称
 */
declare function getCompletionFilterDisplayName(filter: CompletionFilter): string;
/**
 * 获取完成状态标签样式
 */
declare function getCompletionStatusColor(isCompleted?: boolean): string;
/**
 * 获取完成状态标签文本
 */
declare function getCompletionStatusText(isCompleted?: boolean): string;

export { About, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AutoOpenModal, type AutoOpenModalProps, Avatar, AvatarFallback, AvatarImage, BackButton, type BackButtonProps, type BackgroundRemovalOptions, type BackgroundRemovalState, BackgroundRemover, Badge, type BadgeProps, type Ball, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryFilter, CollisionBalls, type CollisionBallsConfig, type CompletionFilter, CompletionFilterComponent, ConfirmModal, type ConfirmModalProps, Contact, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DraggableExperimentGrid, type DraggableExperimentGridProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, EnhancedAvatar, type EnhancedAvatarProps, ExperimentCard, type ExperimentCategory, ExperimentGrid, type ExperimentGridItem, type ExperimentGridProps, type ExperimentItem, ExperimentItemGrid, FilterButtonGroup, type FilterButtonGroupProps, type FilterOption, FloatingMenu, FloatingMenuExample, GenericOrderManager, type GenericOrderManagerProps, Grid, type GridColumns, type GridGap, type GridItem, type GridProps, Home, type HomeConfig, Input, Label, Modal, type ModalProps, Navigation, type NavigationConfig, type NavigationDirection, NavigationItemComponent as NavigationItem, type NavigationPosition, type NavigationProps, NavigationToggle, type OCROptions, type OCRResult, OCRScanner, type OCRState, type OrderManagerOperations, type OrderableItem, PageHeader, type PageHeaderProps, PermissionGuard, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfileBadge, ProfileButton, type ProfileButtonProps, type ProfileData, ProfileModal, type ProfileModalProps, Progress, ProjectCarousel, type ProjectsConfig, ScrollArea, ScrollBar, SearchBox, SearchResultHint, type SearchResultHintProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SentimentAnalyzer, type SentimentOptions, type SentimentResult, type SentimentState, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SmartAssistant, type SocialLink, SortControl, type SortControlProps, type SortMode, SortModeToggle, type SortModeToggleProps, SortableExperimentItem, type SortableExperimentItemProps, type Stat, Tabs, TabsContent, TabsList, TabsTrigger, type TestFieldConfig, type TestFieldPageProps, type TextGenerationOptions, type TextGenerationState, Textarea, Timeline, type TimelineConfig, type TimelineItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserInfoBar, type UserInfoBarProps, type ViewMode, badgeVariants, buttonVariants, filterExperiments, getAllTags, getCategoryColor, getCategoryDisplayName, getCompletionFilterDisplayName, getCompletionStatusColor, getCompletionStatusText, getExperimentCounts, sortExperiments, useBackgroundRemoval, useOCR, useSentimentAnalysis, useTextGeneration, validateExperiment };
