import type { TsTestLogger } from './tstest.logging.js'; import type { Smartshell } from '@push.rocks/smartshell'; export interface IBeforeScripts { /** The "test:before" or "test:before:once" script command, or null if not defined */ beforeOnce: string | null; /** The "test:before:testfile" script command, or null if not defined */ beforeTestfile: string | null; } /** * Load before-script commands from the project's package.json scripts section. */ export declare function loadBeforeScripts(cwd: string): IBeforeScripts; /** * Execute a before-script command and return whether it succeeded. */ export declare function runBeforeScript(smartshellInstance: Smartshell, command: string, label: string, logger: TsTestLogger, env?: { TSTEST_FILE?: string; TSTEST_RUNTIME?: string; }): Promise;