import type { RuntimeAttachmentPathMessage, RuntimeGlobalAttachmentPathMessage } from 'allure-js-commons/sdk'; export declare const PENDING_ATTACHMENT_PREFIX = ".wdio-attachment-"; export declare const PENDING_ATTACHMENT_SUFFIX = ".tmp"; export declare function resolveResultsDir(options: { outputDir?: string; resultsDir?: string; }): string; type OffloadedMessage = RuntimeAttachmentPathMessage | RuntimeGlobalAttachmentPathMessage; /** * Runs in a process that only has the bytes (e.g. a test worker) and writes them where the reporter * will pick them up, so an `attachment_path` message can cross the process boundary instead of the content. * Synchronous so that attachments of a test are on disk before the test result is sent. */ export declare function offloadAttachment(message: unknown, resultsDir: string): OffloadedMessage | undefined; export {}; //# sourceMappingURL=worker.d.ts.map