aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/side-channel/index.d.ts
blob: 18c63171cfd927fd9d4d69a89d2c360c81df67c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import getSideChannelList from 'side-channel-list';
import getSideChannelMap from 'side-channel-map';
import getSideChannelWeakMap from 'side-channel-weakmap';

declare namespace getSideChannel {
	type Channel<K, V> =
		| getSideChannelList.Channel<K, V>
		| ReturnType<Exclude<typeof getSideChannelMap<K, V>, false>>
		| ReturnType<Exclude<typeof getSideChannelWeakMap<K, V>, false>>;
}

declare function getSideChannel<K, V>(): getSideChannel.Channel<K, V>;

export = getSideChannel;