import type { Batch } from './batch.js';
export declare class TelescopeContext {
    private readonly als;
    run<T>(batch: Batch, fn: () => Promise<T>): Promise<T>;
    /**
     * Establish `batch` as the active batch for the current async execution and
     * all its descendants, WITHOUT a callback scope. Used by the request
     * middleware so the batch survives the middleware return and reaches the
     * async handler and exception interceptor.
     */
    enterWith(batch: Batch): void;
    current(): Batch | undefined;
    /** Next capture-order index within the active batch; 0 outside any batch. */
    nextSequence(): number;
}
//# sourceMappingURL=telescope-context.d.ts.map