import type { HistoireTestAroundHookEntry, HistoireTestRuntimeContext, HistoireTestSuiteContext } from '@histoire/shared';
/** Around hook together with suite metadata Vitest passes to it. */
export interface RuntimeAroundHook {
    /** Collected wrapper and its per-phase deadline. */
    hook: HistoireTestAroundHookEntry;
    /** Suite owning this wrapper. */
    suite: HistoireTestSuiteContext;
}
/** Active suite wrapper waiting for lifecycle completion. */
export interface OpenAroundHooks {
    /** Releases wrapper teardown and returns its error, if any. */
    close: () => Promise<unknown>;
}
/**
 * Composes Vitest 4.1 around hooks with separate setup and teardown deadlines.
 * A wrapper that resumes after setup timed out cannot enter later test work.
 */
export declare function runAroundHooks(hooks: RuntimeAroundHook[], runInner: () => Promise<void>, context?: HistoireTestRuntimeContext, hookName?: 'aroundAll' | 'aroundEach'): Promise<void>;
/** Opens suite around hooks until their `runSuite` callback is reached. */
export declare function openAroundHooks(hooks: HistoireTestAroundHookEntry[], suite: HistoireTestSuiteContext): Promise<{
    error: any;
    controller?: undefined;
} | {
    error?: undefined;
    controller: {
        close(): Promise<any>;
    };
}>;
//# sourceMappingURL=around-hooks.d.ts.map