import { IActiveToolsDataType, IMainMessage, IMainMessageRenderData, IWorkerMessage } from "../index"; import { ISubWorkerInitOption } from "./base"; import { LocalWorkForFullWorker } from "./fullWorkerLocal"; import { ServiceWorkForFullWorker } from "./fullWorkerService"; import { SelectorShape, BitMapEraserShape, ArrowShape, ImageShape } from "../tools"; import { PencilEraserShape } from "../tools/pencilEraser"; import { TextShape } from "../tools/text"; import { ISvgShadowShape } from "../tools/shadowSvg"; /** 本地绘制worker 的实现 */ export declare class LocalWorkForSimpleWorker extends LocalWorkForFullWorker { protected _type: string; constructor(opt: ISubWorkerInitOption); createWorkShapeNode(opt: IActiveToolsDataType & { workId: string; }): ArrowShape | import("../tools").PencilShape | import("../tools/straight").StraightShape | import("../tools").EllipseShape | import("../tools").PolygonShape | import("../tools").StarShape | import("../tools").RectangleShape | import("../tools").SpeechBalloonShape | TextShape | import("../tools").LaserPenShape | import("../tools").EraserShape | PencilEraserShape | BitMapEraserShape | SelectorShape | ImageShape | ISvgShadowShape | undefined; protected drawPencil(res: IMainMessage, workId?: string): Promise; protected drawShape(res: IMainMessage): Promise; protected drawSelector(res: IMainMessage, isLockSentEventCursor?: boolean, render?: IMainMessageRenderData[]): Promise; protected drawEraserCombine(workId: string): Promise; consumeDraw(data: IWorkerMessage, serviceWork: ServiceWorkForFullWorker): Promise; consumeDrawAll(data: IWorkerMessage, serviceWork: ServiceWorkForFullWorker): Promise; } /** 服务端同步数据绘制worker 的实现 */ export declare class ServiceWorkForSimpleWorker extends ServiceWorkForFullWorker { readonly _type = "simple"; constructor(opt: ISubWorkerInitOption); protected animationDraw(): Promise; }