| 1 | import test from 'node:test' |
| 2 | import assert from 'node:assert' |
| 3 | |
| 4 | type TestFn = Exclude<Parameters<typeof test.test>[0], undefined> |
| 5 | type TextContext = Exclude<Parameters<TestFn>[0], undefined>; |
| 6 | |
| 7 | export interface Options { |
| 8 | plan?: number; |
| 9 | } |
| 10 | |
| 11 | export type Plan = Omit<typeof assert, 'CallTracker' | 'AssertionError' | 'strict'> & { |
| 12 | completed: Promise<void> |
| 13 | end: () => void |
| 14 | } |
| 15 | |
| 16 | export declare function tspl (context: TextContext, opts?: Options): Plan; |
| 17 | |
| 18 | export default tspl; |