UNPKG

@xec-sh/core

Version:

Universal shell execution engine

7 lines (6 loc) 474 B
import { AsyncLocalStorage } from 'node:async_hooks'; import type { ExecutionConfig } from '../core/config.js'; export declare const asyncLocalStorage: AsyncLocalStorage<Partial<ExecutionConfig>>; export declare function within<T>(config: Partial<ExecutionConfig>, fn: () => T | Promise<T>): Promise<T>; export declare function withinSync<T>(config: Partial<ExecutionConfig>, fn: () => T): T; export declare function getLocalContext(): Partial<ExecutionConfig> | undefined;