import { OperationOption } from './types'; /** * Thread execution data. * * @export * @interface IThreadData * @extends {IThreadResult} */ export interface IThreadData extends IThreadResult { operations: OperationOption[]; } /** * Thread result data. * * @export * @interface IThreadResult */ export interface IThreadResult { imageData: ImageData; guid?: string; } /** * Defines the imgstry thread schema. * * @export * @interface ImgstryThread */ export interface IImgstryThread { /** * Starts a worker thread and initiates the request operations. * * @param {IThreadData} { * imageData, * operations, * } * @returns {Promise} * @memberof ImgstryThread */ run({ imageData, operations, }: IThreadData): Promise; }