/** * Programmatic API for tests to attach files/logs to the CTRF report. * * Usage in test files: * import { ctrf } from 'wdio-pretty-json-reporter'; * ctrf.attach.screenshot('./path.png'); * ctrf.log.info('Custom message'); */ import type { CtrfAttachment } from './types'; /** * Build an attachment API bound to one WDIO worker. The default export keeps * the public API unchanged; the service uses a CID-bound instance so browser * commands never fall back to the shared default bucket in parallel runs. */ export declare function createAttachApi(cid?: string): { /** Generic attachment */ file(name: string, path: string, mimeType: string, category?: CtrfAttachment["category"]): void; /** Screenshot file */ screenshot(path: string, name?: string): void; /** Video file */ video(path: string, name?: string): void; /** Text log file */ logFile(path: string, name?: string): void; /** Raw text content (inline, no file) */ text(name: string, content: string): void; /** JSON content (inline) */ json(name: string, data: unknown): void; /** HTML content (inline) */ html(name: string, content: string): void; /** Appium server log file */ appiumLog(path: string): void; /** Network HAR file */ networkHar(path: string): void; /** Custom attachment with full control */ custom(attachment: Omit): void; }; export declare const attach: { /** Generic attachment */ file(name: string, path: string, mimeType: string, category?: CtrfAttachment["category"]): void; /** Screenshot file */ screenshot(path: string, name?: string): void; /** Video file */ video(path: string, name?: string): void; /** Text log file */ logFile(path: string, name?: string): void; /** Raw text content (inline, no file) */ text(name: string, content: string): void; /** JSON content (inline) */ json(name: string, data: unknown): void; /** HTML content (inline) */ html(name: string, content: string): void; /** Appium server log file */ appiumLog(path: string): void; /** Network HAR file */ networkHar(path: string): void; /** Custom attachment with full control */ custom(attachment: Omit): void; }; export declare const log: { trace(message: string): void; debug(message: string): void; info(message: string): void; warn(message: string): void; error(message: string): void; }; /** Convenience: attach current browser screenshot by name */ export declare function captureScreenshot(name?: string): Promise; export declare const ctrf: { attach: { /** Generic attachment */ file(name: string, path: string, mimeType: string, category?: CtrfAttachment["category"]): void; /** Screenshot file */ screenshot(path: string, name?: string): void; /** Video file */ video(path: string, name?: string): void; /** Text log file */ logFile(path: string, name?: string): void; /** Raw text content (inline, no file) */ text(name: string, content: string): void; /** JSON content (inline) */ json(name: string, data: unknown): void; /** HTML content (inline) */ html(name: string, content: string): void; /** Appium server log file */ appiumLog(path: string): void; /** Network HAR file */ networkHar(path: string): void; /** Custom attachment with full control */ custom(attachment: Omit): void; }; log: { trace(message: string): void; debug(message: string): void; info(message: string): void; warn(message: string): void; error(message: string): void; }; captureScreenshot: typeof captureScreenshot; }; //# sourceMappingURL=api.d.ts.map