import { IMessage } from "./IMessage"; import { IWorkerRegistry } from "./IWorkerRegistry"; export interface IMessageQueueAPI { getPrioritizedMessagesToRun({ workerRegistryData }: { workerRegistryData: IWorkerRegistry }): Promise; updateMessageStatus({ messageId, status, result, workerRegistry }: { messageId: string, status: string, result?: any, workerRegistry?: IWorkerRegistry }): Promise; updateMessageProgress({ messageId, progress }: { messageId: string, progress: number }): Promise; updateMessageResultAndStatus({ messageId, status, result, workerRegistry }: { messageId: string, status: string, result?: any, workerRegistry?: IWorkerRegistry }): Promise; createMessage({ messageData }: { messageData: IMessage }): Promise; createMessages({ messagesData }: { messagesData: IMessage[] }): Promise; getMessagesByRequestId({ requestId }: { requestId: string }): Promise; healthCheck(): Promise; }