1 | /// <reference types="node" />
|
2 | import { EventEmitter } from 'events';
|
3 | export interface RequestMetadata {
|
4 | requestId: string;
|
5 | }
|
6 | export declare type StorageType = Map<string, any>;
|
7 | export declare type AsynchronousLocalStorage = {
|
8 | get: <T>(key: string) => T | undefined;
|
9 | set: <T>(key: string, value: T) => void;
|
10 | bindEmitter(emitter: EventEmitter): void;
|
11 | runWith: (callback: () => void, defaults?: Record<string, any>) => void;
|
12 | storageImplementation: string;
|
13 | };
|