import type { Context } from '../context.js';
export { DEFAULT_COLLECT_TIMEOUT } from '@histoire/shared';
/** Default maximum time (ms) a single story may take to load and mount while collecting. */
export declare const DEFAULT_STORY_COLLECT_TIMEOUT = 30000;
/** Default maximum time (ms) a Histoire test run may go without finishing a spec. */
export declare const DEFAULT_RUN_STALL_TIMEOUT = 300000;
/**
 * Default concurrent test workers. Every worker drives its own browser page, so the count stays
 * at half the CPUs (leaving room for the dev server) and within the memory available now:
 * running out of it takes down every Chromium-based process on the machine, the user's browser included.
 * @param cpus Host scheduling capacity.
 * @param available Memory available to new processes, in bytes.
 */
export declare function defaultTestMaxWorkers(cpus?: number, available?: number): number;
/** Maximum time (ms) to wait for Vitest cleanup before giving up on it. */
export declare const CLEANUP_TIMEOUT = 10000;
/**
 * Resolves the safety timeout (ms) of the browser story collection run.
 * Large projects need more than the default, so it is configurable.
 * @param ctx The histoire context.
 */
export declare function getCollectTimeout(ctx: Context): number;
/**
 * Resolves the per-story timeout (ms) applied while collecting in the browser.
 *
 * Deliberately much shorter than {@link getCollectTimeout}: it fails a single
 * broken story instead of letting it stall the whole collection batch.
 * @param ctx The histoire context.
 */
export declare function getStoryCollectTimeout(ctx: Context): number;
/**
 * Resolves the stall timeout (ms) of the Histoire test run: how long it may go without
 * finishing a spec. Falls back to the deprecated `test.runTimeout` alias.
 * @param ctx The histoire context.
 */
export declare function getRunStallTimeout(ctx: Context): number;
/**
 * Resolves and validates the shared test execution concurrency cap. Without a configured value,
 * the default reads the memory available at each call, so every run fits the machine as it is then.
 * @param ctx The histoire context.
 */
export declare function getTestMaxWorkers(ctx: Context): number;
//# sourceMappingURL=test-timeouts.d.ts.map