import { ExecutionContext } from 'ava'; import { TemplateExpression, Result, Options } from 'execa'; export * from 'execa'; export { default as dedent } from 'dedent'; export { getExecutableBinPath } from 'get-executable-bin-path'; import * as testQuadruple from 'test-quadruple'; export { testQuadruple as tq }; export { replaceAnsiCodes as serializeAnsi } from 'vitest-ansi-serializer'; declare module "async-sema" { interface Sema { acquire(): Promise; } } declare const EXECA_OPTIONS: { readonly all: true; readonly env: { readonly FORCE_COLOR: "1"; }; readonly reject: false; }; type EmptyOptions = Pick; type Run = { (templateStrings: TemplateStringsArray, ...expressions: TemplateExpression[]): Promise>; (file: URL | string, args?: readonly string[], options?: OptionsType): Promise>; (file: URL | string, options?: OptionsType): Promise>; }; /** An `execa` wrapper configured to combine `stdout` and `stderr` and serialize ANSI codes. */ declare const $$: Run; type ConcurrencyContext = Awaited>; /** Parses the `concurrency` environment variable and returns a semaphore. */ declare const withConcurrency: () => Promise<{ /** Acquires the semaphore lock. */ lock: () => Promise; /** The maximum number of concurrent locks. */ max: number; /** Releases the semaphore lock. */ unlock: () => void; }>; /** * Makes a temporary directory and registers a teardown to remove it. Returns the path to the temporary directory. * * @param t The AVA execution context. * @param prefix The prefix for the temporary directory name. */ declare const withTemporaryDirectory: (t: ExecutionContext, prefix: string) => Promise; export { $$, withConcurrency, withTemporaryDirectory }; export type { ConcurrencyContext };