import { Expect } from 'expect'; type Callback = () => void | Promise; type onTestFailCallback = (error: unknown) => void; type TestFunction = (api: { signal: AbortSignal; }) => void | Promise; type Test = (title: string, testFunction: TestFunction, timeoutOrOptions?: number | { timeout?: number; retry?: number; }) => Promise; type DescribeCallback = (api: { signal: AbortSignal; }) => void | Promise; type DescribeOptions = { parallel?: boolean | number | 'auto'; timeout?: number; }; type Describe = (description: string, callback: DescribeCallback, options?: DescribeOptions) => Promise; declare const describe: Describe; declare const onFinish: (callback: Callback) => void; declare const skip: (reason?: string) => void; declare const test: Test; declare const onTestFail: (callback: onTestFailCallback) => void; declare const onTestFinish: (callback: Callback) => void; declare const expectSnapshot: (value: unknown, name?: string) => void; type Config = { snapshotPath?: string; }; declare const configure: (config: Config) => void; declare const setProcessTimeout: (ms: number) => void; /** * `expect`'s ESM wrapper (build/index.mjs) re-exports `cjsModule.expect` from a * default import of its CommonJS build. Bun honors the webpack `__esModule` * marker and binds that default import to `module.exports.default` (the * `expect` function itself), so `cjsModule.expect` is `undefined`. Node instead * binds the default to the whole `module.exports` object. Loading the CommonJS * build via `require` resolves identically on both runtimes. */ declare const expect: Expect; export { configure, describe, expect, expectSnapshot, onFinish, onTestFail, onTestFinish, setProcessTimeout, skip, test }; export type { Describe, Test };