/** * CTRF Runtime API for WebdriverIO * * Enables enriching CTRF test reports with custom metadata at runtime. * * ## Usage * * ```ts * import { extra } from 'wdio-ctrf-json-reporter/runtime' * * describe('My feature', () => { * it('should work', () => { * extra({ owner: 'team-a', priority: 'P1' }) * // test code... * }) * }) * ``` * * ## Behavior * * - Call multiple times; data is deep merged (arrays concat, objects recurse, primitives overwrite) * - Works from any function in the call stack during test execution * - Silently ignored when called outside test context * - Later values override earlier for same keys */ import { CTRF_RUNTIME_KEY, type CtrfRuntimeHandler, type CtrfRuntimeMessage } from './reporter'; /** * Attach arbitrary key-value metadata to the current test. * Multiple calls are deep-merged (arrays concatenated, objects recursed, primitives overwritten). * * @param data - An object containing metadata to attach */ export declare function extra(data: Record): void; export declare const ctrf: { readonly extra: typeof extra; }; export { CTRF_RUNTIME_KEY, type CtrfRuntimeHandler, type CtrfRuntimeMessage };