/**
 * 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 { HealTracerConfig } from './types';
/**
 * Register the tracer's extension config. Typically called once at
 * the top of `playwright.config.ts`, before `defineConfig(...)`. Later
 * calls overwrite earlier ones — there is no merge.
 */
export declare function configureTracer(config: HealTracerConfig): void;
/**
 * Read the currently-registered config. Returns an empty object when
 * the user never called `configureTracer` — the fixture treats that
 * as "NDJSON-only, no bindings."
 */
export declare function getTracerConfig(): HealTracerConfig;
/**
 * Register a function to run when the current test tears down. Runs
 * BEFORE user bindings' `stop()` so SDKs that use
 * `onTestTeardown(...)` still see any globals the bindings installed.
 *
 * Errors raised by a hook are logged to stderr and swallowed.
 */
export declare function onTestTeardown(fn: () => void | Promise<void>): void;
/**
 * Internal. Clears the teardown-hook registry. The fixture calls this
 * at the start of every test to defend against a hook leaking across
 * test boundaries if a prior test crashed before drain ran.
 */
export declare function resetTeardownHooks(): void;
/**
 * Internal. Runs every registered teardown hook in registration order,
 * then clears the registry. Errors are logged and swallowed.
 */
export declare function drainTeardownHooks(): Promise<void>;
