/**
 * Copyright: (c) Myia SAS 2026.
 * This file and its contents are licensed under the AGPLv3 License.
 * Please see the LICENSE file at the root of this repository
 */
import type { Statement, TestAttachment, TestHeader, TestResultRecord } from '../../domain/trace-event-recorder/model/statement-trace-schema';
export interface TraceModel {
    header: TestHeader;
    statements: Statement[];
    result?: TestResultRecord;
    /**
     * Files Playwright produced for the test (`trace.zip`, video,
     * failure screenshots, user attachments). Empty when the optional
     * `HealTracerReporter` is not registered — its absence is not an
     * error.
     */
    attachments: TestAttachment[];
}
export declare const loadTrace: (ndjsonPath: string) => Promise<TraceModel>;
/**
 * Rewrite each statement's `screenshot` from a bare filename
 * (`stmt-0007.png`) to a server-relative URL the SPA can fetch.
 * Walks the statement tree depth-first; pure (does not mutate input).
 */
export declare const rewriteScreenshots: (statements: Statement[], toUrl: (filename: string) => string) => Statement[];
