import type { RuntimeOptions } from './tstest.classes.runtime.adapter.js'; import type { Runtime } from './tstest.classes.runtime.parser.js'; type DirectiveScope = Runtime | 'global'; export interface ITestFileDirective { scope: DirectiveScope; key: string; value?: string; } export interface IParsedDirectives { deno: ITestFileDirective[]; node: ITestFileDirective[]; bun: ITestFileDirective[]; chromium: ITestFileDirective[]; global: ITestFileDirective[]; } /** * Parse tstest directives from file content. * Scans comments at the top of the file (before any code). */ export declare function parseDirectivesFromContent(content: string): IParsedDirectives; /** * Parse directives from a test file on disk. */ export declare function parseDirectivesFromFile(filePath: string): Promise; /** * Merge directives from 00init.ts and the test file. * Test file directives are appended (take effect after init directives). */ export declare function mergeDirectives(init: IParsedDirectives, testFile: IParsedDirectives): IParsedDirectives; /** * Check if any directives exist for any scope. */ export declare function hasDirectives(directives: IParsedDirectives): boolean; /** * Convert parsed directives into RuntimeOptions for a specific runtime. */ export declare function directivesToRuntimeOptions(directives: IParsedDirectives, runtime: Runtime): RuntimeOptions | undefined; export {};