export declare function assertRejects(promise: Promise, expectedError?: string | RegExp | typeof Error): Promise; export interface TestFixture { setup: () => T | Promise; teardown?: (fixture: T) => void | Promise; } export declare function withFixture(fixture: TestFixture, fn: (fixture: T) => R | Promise): Promise;