import { WbColorPreset, WbLineWidthPreset, WbShapePreset, WbToolPreset, WhiteboardElement, WhiteboardShapeType, WhiteboardState, WhiteboardTool } from './types'; /** 默认画布配置 */ export declare const WB_DEFAULT_CANVAS: { zoom: number; panX: number; panY: number; showGrid: boolean; gridSize: number; backgroundColor: string; }; /** 默认描边色 */ export declare const WB_DEFAULT_STROKE = "#1890FF"; /** 默认填充色 */ export declare const WB_DEFAULT_FILL = "transparent"; /** 默认线宽 */ export declare const WB_DEFAULT_STROKE_WIDTH = 2; /** 默认透明度 */ export declare const WB_DEFAULT_OPACITY = 1; /** 默认字号 */ export declare const WB_DEFAULT_FONT_SIZE = 16; /** 历史最大长度 */ export declare const WB_MAX_HISTORY = 50; /** 工具预设列表 */ export declare const WB_TOOL_PRESETS: WbToolPreset[]; /** 形状预设列表 */ export declare const WB_SHAPE_TYPE_PRESETS: WbShapePreset[]; /** 颜色预设 */ export declare const WB_COLOR_PRESETS: WbColorPreset[]; /** 线宽预设 */ export declare const WB_LINE_WIDTH_PRESETS: WbLineWidthPreset[]; /** 透明度预设 */ export declare const WB_OPACITY_PRESETS: WbLineWidthPreset[]; /** 字号预设 */ export declare const WB_FONT_SIZE_PRESETS: WbLineWidthPreset[]; /** 生成元素 ID */ export declare const wbGenId: (prefix?: string) => string; /** 创建画笔元素 */ export declare const createWbPenElement: (params: { points: { x: number; y: number; }[]; stroke?: string; strokeWidth?: number; opacity?: number; }) => WhiteboardElement; /** 创建形状元素 */ export declare const createWbShapeElement: (params: { shape: WhiteboardShapeType; x: number; y: number; width?: number; height?: number; stroke?: string; fill?: string; strokeWidth?: number; opacity?: number; }) => WhiteboardElement; /** 创建直线元素 */ export declare const createWbLineElement: (params: { x1: number; y1: number; x2: number; y2: number; stroke?: string; strokeWidth?: number; opacity?: number; arrow?: boolean; }) => WhiteboardElement; /** 创建文本元素 */ export declare const createWbTextElement: (params: { x: number; y: number; text?: string; width?: number; height?: number; color?: string; fontSize?: number; opacity?: number; }) => WhiteboardElement; /** 统一元素工厂(按工具创建) */ export declare const createWbElement: (tool: WhiteboardTool, params: Record) => WhiteboardElement | null; /** 创建初始状态 */ export declare const createWbInitialState: (initialElements?: WhiteboardElement[]) => WhiteboardState; /** 工具的 i18n 标签 */ export declare const wbToolLabel: (tool: WhiteboardTool) => string; /** 形状的 i18n 标签 */ export declare const wbShapeLabel: (shape: WhiteboardShapeType) => string;