import { ArtifactInput, ArtifactInputPath, ArtifactInputUrl } from "@empiricalrun/shared-types/chat-agent"; import { JSONReport as PlaywrightJSONReport } from "@playwright/test/reporter"; /** * Extracts attachment information from a Playwright JSON report. * @param report The Playwright JSON report to extract attachments from * @returns An array of objects containing path and contentType for each attachment */ export declare function extractAttachmentsFromPlaywrightJSONReport(report: PlaywrightJSONReport, testNameFilter?: string): Array; /** * Scans the given repository directory for Playwright artifacts (attachments) by: * - Constructing the path to the Playwright report directory using the provided repoDir. * - Building the absolute path to the summary.json file within the report directory. * - Checking if summary.json exists, and if so, reading and parsing its contents. * - Extracting attachment information (such as file paths and content types) from the parsed Playwright JSON report. * - Returning an array of ArtifactInput objects, each containing details about a found attachment. * * @param repoDir Absolute path to the root of the repository. Used to construct paths to Playwright artifacts. * @returns Array of ArtifactInput objects representing found Playwright attachments, including their resolved paths and content types. */ export declare function findPlaywrightArtifacts(repoDir: string): ArtifactInput[]; //# sourceMappingURL=utils.d.ts.map