export { ConsoleLoggerAdapter, LogEntry, LogLevel, Logger, LoggerAdapter, LoggerConfig, createLogger, logger } from './logger/index.js';
import React__default, { ReactNode } from 'react';
export { i as AiChatChunk, n as AiChatInputOptions, g as AiChatRequest, f as AiChatRequestOptions, h as AiChatResponse, p as AiChatSession, o as AiChatSessionOptions, m as AiChatStatus, l as AiClient, k as AiClientConfig, j as AiLogger, d as AiMessage, s as AiProvider, A as AiRole, c as AiToolCall, a as AiToolChoice, b as AiToolDefinition, e as AiUsage, P as PromptVariableValue, q as PromptVariables, R as ResolvedAiClientConfig, r as normalizePromptVariables } from './types-DgACCUpT.js';
export { DEFAULT_OPENAI_BASE_URL, DEFAULT_OPENAI_MODEL, InMemorySkillRegistry, PromptTemplateOptions, SkillDefinition, SkillExecutionContext, SkillInputSchema, SkillRegistry, UseAiChatOptions, applyPromptTemplate, createAiClient, createChatSession, createOpenAICompatibleProvider, createSkillRegistry, skillToToolDefinition, useAiChat } from './ai/llm/core/index.js';
export { arrayUtils, cn, debugUtils, errorUtils, fileUtils, formatTime, japaneseUtils, stringUtils, validators } from './utils/index.js';
import { GridItem, GridColumns, GridGap } from './components/index.js';
export { Dialog as AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, DialogDescription as AlertDialogDescription, DialogFooter as AlertDialogFooter, DialogHeader as AlertDialogHeader, DialogOverlay as AlertDialogOverlay, DialogPortal as AlertDialogPortal, DialogTitle as AlertDialogTitle, DialogTrigger as AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, BackButton, BackButtonProps, Badge, BadgeProps, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ConfirmModal, ConfirmModalProps, Dialog, DialogClose, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FilterButtonGroup, FilterButtonGroupProps, FilterOption, Grid, GridProps, ImageMappingItem, ImageMappingPanel, ImageMappingPanelProps, ImageMappingValue, Input, Label, LocalImageMappingPanel, LocalImageMappingPanelProps, Modal, ModalProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ProgressProps, ScrollArea, ScrollBar, SearchBox, SearchResultHint, SearchResultHintProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SeparatorProps, Dialog as Sheet, DialogClose as SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, DialogOverlay as SheetOverlay, DialogPortal as SheetPortal, SheetTitle, DialogTrigger as SheetTrigger, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants } from './components/index.js';
export { B as Ball, C as CollisionBalls, c as CollisionBallsConfig, T as Timeline, b as TimelineConfig, a as TimelineItem } from './CollisionBalls-BpHufX3H.js';
export { G as GenericOrderManager, a as GenericOrderManagerProps, b as OrderManagerOperations, O as OrderableItem } from './GenericOrderManager-e4WizpNf.js';
export { About, Contact, ExperimentCard, Home, HomeConfig, ProjectCarousel, ProjectsConfig } from './portfolio/index.js';
export { FloatingMenu, FloatingMenuExample, Navigation, NavigationConfig, NavigationDirection, NavigationItem, NavigationPosition, NavigationProps, NavigationToggle } from './navigation/index.js';
import { B as BaseApiClient } from './base-api-client-B-yUCal3.js';
export { DANMAKU_MAX_LENGTH, DANMAKU_TRACK_COUNT, DEFAULT_MAX_ACTIVE_FIREWORKS, DEFAULT_MAX_PARTICLES, DanmakuOverlayItem, DanmakuPanel, FIREWORK_KIND_LABELS, FireworksCanvas, FireworksControlPanel, MIKU_PALETTE, MikuFireworks3D, NORMAL_PALETTE, UseFireworksEngineOptions, WebSocketTransport, WebSocketTransportCallbacks, useDanmakuController, useFireworksEngine, useFireworksRealtime } from './mikuFireworks3D/index.js';
export { e as DanmakuControllerOptions, D as DanmakuMessage, d as DanmakuSendResult, c as FireworkEngineOptions, F as FireworkKind, a as FireworkLaunchPayload, b as FireworkPosition, g as FireworksRealtimeConfig, h as FireworksRealtimeState, f as FireworksRealtimeUser, M as MikuFireworks3DProps } from './types-DBVDr8Mu.js';
export { ResolveScreenReceiverSignalUrlOptions, ScreenReceiverClientRole, ScreenReceiverErrorMessage, ScreenReceiverIncomingMessage, ScreenReceiverJoinMessage, ScreenReceiverJoinedMessage, ScreenReceiverLogEntry, ScreenReceiverPeerJoinedMessage, ScreenReceiverPeerLeftMessage, ScreenReceiverRole, ScreenReceiverRoomStateMessage, ScreenReceiverSignalMessage, ScreenReceiverSignalType, UseScreenReceiverOptions, UseScreenReceiverReturn, resolveScreenReceiverSignalUrl, useScreenReceiver } from './screenReceiver/core/index.js';
export { ScreenReceiverPanel, ScreenReceiverPanelProps } from './screenReceiver/web/index.js';
export { DEFAULT_FESTIVAL_CARD_CONFIG, normalizeFestivalCardConfig, resizeFestivalCardPages } from './festivalCard/core/index.js';
export { F as FestivalCardService, c as createInMemoryFestivalCardDb, u as useFestivalCardConfig } from './festivalCardService-iFKu0k9q.js';
export { FestivalCardBook3D, FestivalCardBook3DProps, FestivalCardConfigEditor, FestivalCardConfigPage, FestivalCardManagedPage, FestivalCardPageRenderer, FestivalCardStudio } from './festivalCard/web/index.js';
export { g as FestivalCardAudioConfig, F as FestivalCardConfig, h as FestivalCardConfigSummary, i as FestivalCardDbAdapter, e as FestivalCardElement, b as FestivalCardElementBase, a as FestivalCardElementType, d as FestivalCardImageElement, f as FestivalCardPage, j as FestivalCardServiceOptions, c as FestivalCardTextElement } from './types-D2WetAPc.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 './types-CbTsi9CZ.js';
import 'clsx';
import 'class-variance-authority/types';
import 'class-variance-authority';
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>;

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>;

/**
 * 实验田模块类型定义
 */
/**
 * 实验项目类别
 */
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 { AutoOpenModal, type AutoOpenModalProps, type BackgroundRemovalOptions, type BackgroundRemovalState, BackgroundRemover, CategoryFilter, type CompletionFilter, CompletionFilterComponent, DraggableExperimentGrid, type DraggableExperimentGridProps, EmptyState, type EmptyStateProps, EnhancedAvatar, type EnhancedAvatarProps, type ExperimentCategory, ExperimentGrid, type ExperimentGridItem, type ExperimentGridProps, type ExperimentItem, ExperimentItemGrid, GridColumns, GridGap, GridItem, type OCROptions, type OCRResult, OCRScanner, type OCRState, PageHeader, type PageHeaderProps, PermissionGuard, type ProfileBadge, ProfileButton, type ProfileButtonProps, type ProfileData, ProfileModal, type ProfileModalProps, SentimentAnalyzer, type SentimentOptions, type SentimentResult, type SentimentState, SmartAssistant, type SocialLink, SortControl, type SortControlProps, type SortMode, SortModeToggle, type SortModeToggleProps, SortableExperimentItem, type SortableExperimentItemProps, type Stat, type TestFieldConfig, type TestFieldPageProps, type TextGenerationOptions, type TextGenerationState, UserInfoBar, type UserInfoBarProps, type ViewMode, filterExperiments, getAllTags, getCategoryColor, getCategoryDisplayName, getCompletionFilterDisplayName, getCompletionStatusColor, getCompletionStatusText, getExperimentCounts, sortExperiments, useBackgroundRemoval, useOCR, useSentimentAnalysis, useTextGeneration, validateExperiment };
