import Callsite from '@distributed-systems/callsite'; import type Section from './Section.js'; import { ExecutionResult, ErrorData, MessageType } from './types.js'; interface SectionExecutorOptions { section: Section; } interface LogOptions { section: Section; message: string; level: string; } export default class SectionExecutor { section: Section; callsite: Callsite; constructor({ section }: SectionExecutorOptions); normalizeProcessError(err: unknown): Error; runWithTimeout(execute: () => void | Promise, timeoutTime: number, timeoutMessage: string): Promise; runWithGuards(execute: () => void | Promise, timeoutTime: number, timeoutMessage: string): Promise; execute(): Promise; /** * converts an error object to a transportable standard error * * @param {error} err * * @returns {object} */ convertError(err: any): ErrorData; executeSubSections(): Promise; executeTests(): Promise; sendLogMessage(options: LogOptions): void; executeDestroyers(): Promise; executeSetups(): Promise<{ error?: ErrorData; failed: number; }>; sendMessage(message: MessageType): void; } export {}; //# sourceMappingURL=SectionExecutor.d.ts.map