import type { ITaskRawEvent } from "../../api/handler/types.js"; import type { ITaskEventValidation, ITaskRunner } from "./abstractions/index.js"; import type { Context } from "../../api/types.js"; import type { IResponseResult } from "../../api/response/abstractions/index.js"; import type { ITimer } from "@webiny/handler-aws/utils/index.js"; export declare class TaskRunner implements ITaskRunner { /** * When DI is introduced, these will get injected. * * container.bind("Request").toConstantValue(request); * @inject("Request") public readonly request: Request; * * Follow the same example for the rest of the properties. */ readonly context: C; readonly timer: ITimer; private readonly validation; /** * We take all required variables separately because they will get injected via DI - so less refactoring is required in the future. */ constructor(context: C, timer: ITimer, validation: ITaskEventValidation); isCloseToTimeout(seconds?: number): boolean; run(rawEvent: ITaskRawEvent): Promise; private getIsCloseToTimeoutMilliseconds; }