@tstdl/base 0.88.0-alpha5 → 0.88.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,246 +1,266 @@
1
- import type { AbstractConstructor, TypedArray } from '../types.js';
2
- export type InferIsType<T> = T extends (value: any) => value is infer R ? R : never;
3
- export type InferIsNotType<ValueType, T> = T extends (value: any) => value is infer R ? Exclude<ValueType, R> : never;
1
+ import type { AbstractConstructor, JsonPrimitive, Primitive, TypedArray } from '../types.js';
2
+ import type { PascalCase } from 'type-fest';
4
3
  export type AssertionMessage = string | (() => string);
4
+ export type IsFunction<T> = <U extends T = T>(value: any) => value is U;
5
+ export type IsNotFunction<T> = <V>(value: V) => value is Exclude<V, T>;
6
+ export type AssertFunction<T> = <U extends T = T>(value: any, message?: AssertionMessage) => asserts value is U;
7
+ export type AssertNotFunction<T> = <V>(value: V, message?: AssertionMessage) => asserts value is Exclude<V, T>;
8
+ export type AssertPassFunction<T> = <U extends T = T>(value: any, message?: AssertionMessage) => U;
9
+ export type AssertNotPassFunction<T> = <V>(value: V, message?: AssertionMessage) => Exclude<V, T>;
10
+ export type GuardFunctions<N extends string, T> = {
11
+ [P in `is${PascalCase<N>}`]: IsFunction<T>;
12
+ } & {
13
+ [P in `isNot${PascalCase<N>}`]: IsNotFunction<T>;
14
+ } & {
15
+ [P in `assert${PascalCase<N>}`]: AssertFunction<T>;
16
+ } & {
17
+ [P in `assertNot${PascalCase<N>}`]: AssertNotFunction<T>;
18
+ } & {
19
+ [P in `assert${PascalCase<N>}Pass`]: AssertPassFunction<T>;
20
+ } & {
21
+ [P in `assertNot${PascalCase<N>}Pass`]: AssertNotPassFunction<T>;
22
+ };
5
23
  export declare function assert(condition: boolean, message?: AssertionMessage): asserts condition;
6
24
  export declare function assertNot(condition: boolean, message?: AssertionMessage): asserts condition;
7
- export declare function isType<T>(type: AbstractConstructor<T>, value: any): value is T;
8
- export declare function isNotType<T>(type: AbstractConstructor<T>, value: any): value is InferIsNotType<T, typeof isType>;
9
- export declare function assertType<T>(type: AbstractConstructor<T>, value: any, message?: AssertionMessage): asserts value is T;
10
- export declare function assertNotType<T>(type: AbstractConstructor<T>, value: any, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isType>;
11
- export declare function assertTypePass<T>(type: AbstractConstructor<T>, value: any, message?: AssertionMessage): T;
12
- export declare function assertNotTypePass<T>(type: AbstractConstructor<T>, value: any, message?: AssertionMessage): InferIsNotType<T, typeof isType>;
13
- export declare function isUndefined(value: any): value is undefined | void;
14
- export declare function isDefined<T>(value: T): value is InferIsNotType<T, typeof isUndefined>;
15
- export declare function assertUndefined(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isUndefined>;
16
- export declare function assertDefined<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isUndefined>;
17
- export declare function assertUndefinedPass(value: any, message?: AssertionMessage): InferIsType<typeof isUndefined>;
18
- export declare function assertDefinedPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isUndefined>;
19
- export declare function isNull(value: any): value is null;
20
- export declare function isNotNull<T>(value: T): value is InferIsNotType<T, typeof isNull>;
21
- export declare function assertNull(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isNull>;
22
- export declare function assertNotNull<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isNull>;
23
- export declare function assertNullPass(value: any, message?: AssertionMessage): InferIsType<typeof isNull>;
24
- export declare function assertNotNullPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isNull>;
25
- export declare function isNullOrUndefined(value: any): value is null | undefined;
26
- export declare function isNotNullOrUndefined<T>(value: T): value is InferIsNotType<T, typeof isNullOrUndefined>;
27
- export declare function assertNullOrUndefined(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isNullOrUndefined>;
28
- export declare function assertNotNullOrUndefined<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isNullOrUndefined>;
29
- export declare function assertNullOrUndefinedPass(value: any, message?: AssertionMessage): InferIsType<typeof isNullOrUndefined>;
30
- export declare function assertNotNullOrUndefinedPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isNullOrUndefined>;
31
- export declare function isNumber(value: any): value is number;
32
- export declare function isNotNumber<T>(value: T): value is InferIsNotType<T, typeof isNumber>;
33
- export declare function assertNumber(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isNumber>;
34
- export declare function assertNotNumber<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isNumber>;
35
- export declare function assertNumberPass(value: any, message?: AssertionMessage): InferIsType<typeof isNumber>;
36
- export declare function assertNotNumberPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isNumber>;
37
- export declare function isString(value: any): value is string;
38
- export declare function isNotString<T>(value: T): value is InferIsNotType<T, typeof isString>;
39
- export declare function assertString(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isString>;
40
- export declare function assertNotString<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isString>;
41
- export declare function assertStringPass(value: any, message?: AssertionMessage): InferIsType<typeof isString>;
42
- export declare function assertNotStringPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isString>;
43
- export declare function isBoolean(value: any): value is boolean;
44
- export declare function isNotBoolean<T>(value: T): value is InferIsNotType<T, typeof isBoolean>;
45
- export declare function assertBoolean(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isBoolean>;
46
- export declare function assertNotBoolean<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isBoolean>;
47
- export declare function assertBooleanPass(value: any, message?: AssertionMessage): InferIsType<typeof isBoolean>;
48
- export declare function assertNotBooleanPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isBoolean>;
49
- export declare function isBigInt(value: any): value is bigint;
50
- export declare function isNotBigInt<T>(value: T): value is InferIsNotType<T, typeof isBigInt>;
51
- export declare function assertBigInt(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isBigInt>;
52
- export declare function assertNotBigInt<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isBigInt>;
53
- export declare function assertBigIntPass(value: any, message?: AssertionMessage): InferIsType<typeof isBigInt>;
54
- export declare function assertNotBigIntPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isBigInt>;
55
- export declare function isFunction<T extends Function = Function>(value: any): value is T;
56
- export declare function isNotFunction<T>(value: T): value is InferIsNotType<T, typeof isFunction>;
57
- export declare function assertFunction<T extends Function = Function>(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isFunction<T>>;
58
- export declare function assertNotFunction<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isFunction>;
59
- export declare function assertFunctionPass<T extends Function = Function>(value: any, message?: AssertionMessage): InferIsType<typeof isFunction<T>>;
60
- export declare function assertNotFunctionPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isFunction>;
61
- export declare function isSymbol(value: any): value is symbol;
62
- export declare function isNotSymbol<T>(value: T): value is InferIsNotType<T, typeof isSymbol>;
63
- export declare function assertSymbol(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isSymbol>;
64
- export declare function assertNotSymbol<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isSymbol>;
65
- export declare function assertSymbolPass(value: any, message?: AssertionMessage): InferIsType<typeof isSymbol>;
66
- export declare function assertNotSymbolPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isSymbol>;
67
- export declare function isObject<T extends object = object>(value: any): value is T;
68
- export declare function isNotObject<T>(value: T): value is InferIsNotType<T, typeof isObject>;
69
- export declare function assertObject<T extends object = object>(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isObject<T>>;
70
- export declare function assertNotObject<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isObject>;
71
- export declare function assertObjectPass<T extends object = object>(value: any, message?: AssertionMessage): InferIsType<typeof isObject>;
72
- export declare function assertNotObjectPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isObject>;
73
- export declare function isPrimitive(value: any): value is string | number | boolean | bigint | symbol | null | undefined;
74
- export declare function isNotPrimitive<T>(value: T): value is InferIsNotType<T, typeof isPrimitive>;
75
- export declare function assertPrimitive(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isPrimitive>;
76
- export declare function assertNotPrimitive<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isPrimitive>;
77
- export declare function assertPrimitivePass(value: any, message?: AssertionMessage): InferIsType<typeof isPrimitive>;
78
- export declare function assertNotPrimitivePass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isPrimitive>;
79
- export declare function isJsonPrimitive(value: any): value is string | number | boolean | null;
80
- export declare function isNotJsonPrimitive<T>(value: T): value is InferIsNotType<T, typeof isJsonPrimitive>;
81
- export declare function assertJsonPrimitive(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isJsonPrimitive>;
82
- export declare function assertNotJsonPrimitive<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isJsonPrimitive>;
83
- export declare function assertJsonPrimitivePass(value: any, message?: AssertionMessage): InferIsType<typeof isJsonPrimitive>;
84
- export declare function assertNotJsonPrimitivePass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isJsonPrimitive>;
85
- export declare function isDate(value: any): value is Date;
86
- export declare function isNotDate<T>(value: T): value is InferIsNotType<T, typeof isDate>;
87
- export declare function assertDate(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isDate>;
88
- export declare function assertNotDate<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isDate>;
89
- export declare function assertDatePass(value: any, message?: AssertionMessage): InferIsType<typeof isDate>;
90
- export declare function assertNotDatePass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isDate>;
91
- export declare function isValidDate(value: any): value is Date;
92
- export declare function isNotValidDate<T>(value: T): value is InferIsNotType<T, typeof isValidDate>;
93
- export declare function assertValidDate(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isValidDate>;
94
- export declare function assertNotValidDate<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isValidDate>;
95
- export declare function assertValidDatePass(value: any, message?: AssertionMessage): InferIsType<typeof isValidDate>;
96
- export declare function assertNotValidDatePass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isValidDate>;
97
- export declare function isRegExp(value: any): value is RegExp;
98
- export declare function isNotRegExp<T>(value: T): value is InferIsNotType<T, typeof isRegExp>;
99
- export declare function assertRegExp(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isRegExp>;
100
- export declare function assertNotRegExp<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isRegExp>;
101
- export declare function assertRegExpPass(value: any, message?: AssertionMessage): InferIsType<typeof isRegExp>;
102
- export declare function assertNotRegExpPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isRegExp>;
103
- export declare function isArray<T = any>(value: any): value is readonly T[];
104
- export declare function isNotArray<T>(value: T): value is InferIsNotType<T, typeof isArray>;
105
- export declare function assertArray<T = any>(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isArray<T>>;
106
- export declare function assertNotArray<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isArray>;
107
- export declare function assertArrayPass<T = any>(value: any, message?: AssertionMessage): InferIsType<typeof isArray>;
108
- export declare function assertNotArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isArray>;
109
- export declare function isWritableArray(value: any): value is any[];
110
- export declare function isNotWritableArray<T>(value: T): value is InferIsNotType<T, typeof isWritableArray>;
111
- export declare function assertWritableArray(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isWritableArray>;
112
- export declare function assertNotWritableArray<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isWritableArray>;
113
- export declare function assertWritableArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isWritableArray>;
114
- export declare function assertNotWritableArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isWritableArray>;
115
- export declare function isBlob(value: any): value is Blob;
116
- export declare function isNotBlob<T>(value: T): value is InferIsNotType<T, typeof isBlob>;
117
- export declare function assertBlob(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isBlob>;
118
- export declare function assertNotBlob<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isBlob>;
119
- export declare function assertBlobPass(value: any, message?: AssertionMessage): InferIsType<typeof isBlob>;
120
- export declare function assertNotBlobPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isBlob>;
121
- export declare function isBinaryData(value: any): value is BinaryData;
122
- export declare function isNotBinaryData<T>(value: T): value is InferIsNotType<T, typeof isBinaryData>;
123
- export declare function assertBinaryData(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isBinaryData>;
124
- export declare function assertNotBinaryData<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isBinaryData>;
125
- export declare function assertBinaryDataPass(value: any, message?: AssertionMessage): InferIsType<typeof isBinaryData>;
126
- export declare function assertNotBinaryDataPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isBinaryData>;
127
- export declare function isArrayBuffer(value: any): value is ArrayBuffer;
128
- export declare function isNotArrayBuffer<T>(value: T): value is InferIsNotType<T, typeof isArrayBuffer>;
129
- export declare function assertArrayBuffer(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isArrayBuffer>;
130
- export declare function assertNotArrayBuffer<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isArrayBuffer>;
131
- export declare function assertArrayBufferPass(value: any, message?: AssertionMessage): InferIsType<typeof isArrayBuffer>;
132
- export declare function assertNotArrayBufferPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isArrayBuffer>;
133
- export declare function isArrayBufferView(value: any): value is ArrayBufferView;
134
- export declare function isNotArrayBufferView<T>(value: T): value is InferIsNotType<T, typeof isArrayBufferView>;
135
- export declare function assertArrayBufferView(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isArrayBufferView>;
136
- export declare function assertNotArrayBufferView<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isArrayBufferView>;
137
- export declare function assertArrayBufferViewPass(value: any, message?: AssertionMessage): InferIsType<typeof isArrayBufferView>;
138
- export declare function assertNotArrayBufferViewPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isArrayBufferView>;
139
- export declare function isTypedArray(value: any): value is TypedArray;
140
- export declare function isNotTypedArray<T>(value: T): value is InferIsNotType<T, typeof isTypedArray>;
141
- export declare function assertTypedArray(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isTypedArray>;
142
- export declare function assertNotTypedArray<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isTypedArray>;
143
- export declare function assertTypedArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isTypedArray>;
144
- export declare function assertNotTypedArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isTypedArray>;
145
- export declare function isInt8Array(value: any): value is Int8Array;
146
- export declare function isNotInt8Array<T>(value: T): value is InferIsNotType<T, typeof isInt8Array>;
147
- export declare function assertInt8Array(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isInt8Array>;
148
- export declare function assertNotInt8Array<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isInt8Array>;
149
- export declare function assertInt8ArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isInt8Array>;
150
- export declare function assertNotInt8ArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isInt8Array>;
151
- export declare function isUint8Array(value: any): value is Uint8Array;
152
- export declare function isNotUint8Array<T>(value: T): value is InferIsNotType<T, typeof isUint8Array>;
153
- export declare function assertUint8Array(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isUint8Array>;
154
- export declare function assertNotUint8Array<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isUint8Array>;
155
- export declare function assertUint8ArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isUint8Array>;
156
- export declare function assertNotUint8ArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isUint8Array>;
157
- export declare function isUint8ClampedArray(value: any): value is Uint8ClampedArray;
158
- export declare function isNotUint8ClampedArray<T>(value: T): value is InferIsNotType<T, typeof isUint8ClampedArray>;
159
- export declare function assertUint8ClampedArray(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isUint8ClampedArray>;
160
- export declare function assertNotUint8ClampedArray<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isUint8ClampedArray>;
161
- export declare function assertUint8ClampedArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isUint8ClampedArray>;
162
- export declare function assertNotUint8ClampedArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isUint8ClampedArray>;
163
- export declare function isInt16Array(value: any): value is Int16Array;
164
- export declare function isNotInt16Array<T>(value: T): value is InferIsNotType<T, typeof isInt16Array>;
165
- export declare function assertInt16Array(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isInt16Array>;
166
- export declare function assertNotInt16Array<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isInt16Array>;
167
- export declare function assertInt16ArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isInt16Array>;
168
- export declare function assertNotInt16ArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isInt16Array>;
169
- export declare function isUint16Array(value: any): value is Uint16Array;
170
- export declare function isNotUint16Array<T>(value: T): value is InferIsNotType<T, typeof isUint16Array>;
171
- export declare function assertUint16Array(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isUint16Array>;
172
- export declare function assertNotUint16Array<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isUint16Array>;
173
- export declare function assertUint16ArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isUint16Array>;
174
- export declare function assertNotUint16ArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isUint16Array>;
175
- export declare function isInt32Array(value: any): value is Int32Array;
176
- export declare function isNotInt32Array<T>(value: T): value is InferIsNotType<T, typeof isInt32Array>;
177
- export declare function assertInt32Array(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isInt32Array>;
178
- export declare function assertNotInt32Array<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isInt32Array>;
179
- export declare function assertInt32ArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isInt32Array>;
180
- export declare function assertNotInt32ArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isInt32Array>;
181
- export declare function isUint32Array(value: any): value is Uint32Array;
182
- export declare function isNotUint32Array<T>(value: T): value is InferIsNotType<T, typeof isUint32Array>;
183
- export declare function assertUint32Array(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isUint32Array>;
184
- export declare function assertNotUint32Array<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isUint32Array>;
185
- export declare function assertUint32ArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isUint32Array>;
186
- export declare function assertNotUint32ArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isUint32Array>;
187
- export declare function isFloat32Array(value: any): value is Float32Array;
188
- export declare function isNotFloat32Array<T>(value: T): value is InferIsNotType<T, typeof isFloat32Array>;
189
- export declare function assertFloat32Array(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isFloat32Array>;
190
- export declare function assertNotFloat32Array<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isFloat32Array>;
191
- export declare function assertFloat32ArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isFloat32Array>;
192
- export declare function assertNotFloat32ArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isFloat32Array>;
193
- export declare function isFloat64Array(value: any): value is Float64Array;
194
- export declare function isNotFloat64Array<T>(value: T): value is InferIsNotType<T, typeof isFloat64Array>;
195
- export declare function assertFloat64Array(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isFloat64Array>;
196
- export declare function assertNotFloat64Array<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isFloat64Array>;
197
- export declare function assertFloat64ArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isFloat64Array>;
198
- export declare function assertNotFloat64ArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isFloat64Array>;
199
- export declare function isBigInt64Array(value: any): value is BigInt64Array;
200
- export declare function isNotBigInt64Array<T>(value: T): value is InferIsNotType<T, typeof isBigInt64Array>;
201
- export declare function assertBigInt64Array(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isBigInt64Array>;
202
- export declare function assertNotBigInt64Array<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isBigInt64Array>;
203
- export declare function assertBigInt64ArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isBigInt64Array>;
204
- export declare function assertNotBigInt64ArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isBigInt64Array>;
205
- export declare function isBigUint64Array(value: any): value is BigUint64Array;
206
- export declare function isNotBigUint64Array<T>(value: T): value is InferIsNotType<T, typeof isBigUint64Array>;
207
- export declare function assertBigUint64Array(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isBigUint64Array>;
208
- export declare function assertNotBigUint64Array<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isBigUint64Array>;
209
- export declare function assertBigUint64ArrayPass(value: any, message?: AssertionMessage): InferIsType<typeof isBigUint64Array>;
210
- export declare function assertNotBigUint64ArrayPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isBigUint64Array>;
211
- export declare function isDataView(value: any): value is DataView;
212
- export declare function isNotDataView<T>(value: T): value is InferIsNotType<T, typeof isDataView>;
213
- export declare function assertDataView(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isDataView>;
214
- export declare function assertNotDataView<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isDataView>;
215
- export declare function assertDataViewPass(value: any, message?: AssertionMessage): InferIsType<typeof isDataView>;
216
- export declare function assertNotDataViewPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isDataView>;
217
- export declare function isSet<T>(value: any): value is Set<T>;
218
- export declare function isNotSet<T>(value: T): value is InferIsNotType<T, typeof isSet>;
219
- export declare function assertSet<T>(value: any, message?: AssertionMessage): asserts value is Set<T>;
220
- export declare function assertNotSet<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isSet>;
221
- export declare function assertSetPass<T>(value: any, message?: AssertionMessage): Set<T>;
222
- export declare function assertNotSetPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isSet>;
223
- export declare function isMap<K, V>(value: any): value is Map<K, V>;
224
- export declare function isNotMap<T>(value: T): value is InferIsNotType<T, typeof isMap>;
225
- export declare function assertMap<K, V>(value: any, message?: AssertionMessage): asserts value is Map<K, V>;
226
- export declare function assertNotMap<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isMap>;
227
- export declare function assertMapPass<K, V>(value: any, message?: AssertionMessage): Map<K, V>;
228
- export declare function assertNotMapPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isMap>;
229
- export declare function isPromise<T>(value: any): value is Promise<T>;
230
- export declare function isNotPromise<T>(value: T): value is InferIsNotType<T, typeof isPromise>;
231
- export declare function assertPromise<T>(value: any, message?: AssertionMessage): asserts value is Promise<T>;
232
- export declare function assertNotPromise<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isPromise>;
233
- export declare function assertPromisePass<T>(value: any, message?: AssertionMessage): Promise<T>;
234
- export declare function assertNotPromisePass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isPromise>;
235
- export declare function isReadableStream<T = any>(value: any): value is ReadableStream<T>;
236
- export declare function isNotReadableStream<T>(value: T): value is InferIsNotType<T, typeof isReadableStream>;
237
- export declare function assertReadableStream<T = any>(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isReadableStream<T>>;
238
- export declare function assertNotReadableStream<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isReadableStream>;
239
- export declare function assertReadableStreamPass<T = any>(value: any, message?: AssertionMessage): InferIsType<typeof isReadableStream>;
240
- export declare function assertNotReadableStreamPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isReadableStream>;
241
- export declare function isError(value: any): value is Error;
242
- export declare function isNotError<T>(value: T): value is InferIsNotType<T, typeof isError>;
243
- export declare function assertError(value: any, message?: AssertionMessage): asserts value is InferIsType<typeof isError>;
244
- export declare function assertNotError<T>(value: T, message?: AssertionMessage): asserts value is InferIsNotType<T, typeof isError>;
245
- export declare function assertErrorPass(value: any, message?: AssertionMessage): InferIsType<typeof isError>;
246
- export declare function assertNotErrorPass<T>(value: T, message?: AssertionMessage): InferIsNotType<T, typeof isError>;
25
+ export declare function createGuards<N extends string, T>(name: N, testFn: (value: any) => value is T): GuardFunctions<N, T>;
26
+ export declare function createInstanceGuards<N extends string, T>(name: N, type: AbstractConstructor<T>): GuardFunctions<N, T>;
27
+ export declare const isUndefined: IsFunction<undefined | void>;
28
+ export declare const isDefined: IsNotFunction<undefined | void>;
29
+ export declare const assertUndefined: AssertFunction<undefined | void>;
30
+ export declare const assertDefined: AssertNotFunction<undefined | void>;
31
+ export declare const assertUndefinedPass: AssertPassFunction<undefined | void>;
32
+ export declare const assertDefinedPass: AssertNotPassFunction<undefined | void>;
33
+ export declare const isNull: IsFunction<null>;
34
+ export declare const isNotNull: IsNotFunction<null>;
35
+ export declare const assertNull: AssertFunction<null>;
36
+ export declare const assertNotNull: AssertNotFunction<null>;
37
+ export declare const assertNullPass: AssertPassFunction<null>;
38
+ export declare const assertNotNullPass: AssertNotPassFunction<null>;
39
+ export declare const isNullOrUndefined: IsFunction<null | undefined>;
40
+ export declare const isNotNullOrUndefined: IsNotFunction<null | undefined>;
41
+ export declare const assertNullOrUndefined: AssertFunction<null | undefined>;
42
+ export declare const assertNotNullOrUndefined: AssertNotFunction<null | undefined>;
43
+ export declare const assertNullOrUndefinedPass: AssertPassFunction<null | undefined>;
44
+ export declare const assertNotNullOrUndefinedPass: AssertNotPassFunction<null | undefined>;
45
+ export declare const isNumber: IsFunction<number>;
46
+ export declare const isNotNumber: IsNotFunction<number>;
47
+ export declare const assertNumber: AssertFunction<number>;
48
+ export declare const assertNotNumber: AssertNotFunction<number>;
49
+ export declare const assertNumberPass: AssertPassFunction<number>;
50
+ export declare const assertNotNumberPass: AssertNotPassFunction<number>;
51
+ export declare const isString: IsFunction<string>;
52
+ export declare const isNotString: IsNotFunction<string>;
53
+ export declare const assertString: AssertFunction<string>;
54
+ export declare const assertNotString: AssertNotFunction<string>;
55
+ export declare const assertStringPass: AssertPassFunction<string>;
56
+ export declare const assertNotStringPass: AssertNotPassFunction<string>;
57
+ export declare const isBoolean: IsFunction<boolean>;
58
+ export declare const isNotBoolean: IsNotFunction<boolean>;
59
+ export declare const assertBoolean: AssertFunction<boolean>;
60
+ export declare const assertNotBoolean: AssertNotFunction<boolean>;
61
+ export declare const assertBooleanPass: AssertPassFunction<boolean>;
62
+ export declare const assertNotBooleanPass: AssertNotPassFunction<boolean>;
63
+ export declare const isBigInt: IsFunction<bigint>;
64
+ export declare const isNotBigInt: IsNotFunction<bigint>;
65
+ export declare const assertBigInt: AssertFunction<bigint>;
66
+ export declare const assertNotBigInt: AssertNotFunction<bigint>;
67
+ export declare const assertBigIntPass: AssertPassFunction<bigint>;
68
+ export declare const assertNotBigIntPass: AssertNotPassFunction<bigint>;
69
+ export declare const isFunction: IsFunction<Function>;
70
+ export declare const isNotFunction: IsNotFunction<Function>;
71
+ export declare const assertFunction: AssertFunction<Function>;
72
+ export declare const assertNotFunction: AssertNotFunction<Function>;
73
+ export declare const assertFunctionPass: AssertPassFunction<Function>;
74
+ export declare const assertNotFunctionPass: AssertNotPassFunction<Function>;
75
+ export declare const isSymbol: IsFunction<symbol>;
76
+ export declare const isNotSymbol: IsNotFunction<symbol>;
77
+ export declare const assertSymbol: AssertFunction<symbol>;
78
+ export declare const assertNotSymbol: AssertNotFunction<symbol>;
79
+ export declare const assertSymbolPass: AssertPassFunction<symbol>;
80
+ export declare const assertNotSymbolPass: AssertNotPassFunction<symbol>;
81
+ export declare const isLiteralObject: IsFunction<object>;
82
+ export declare const isNotLiteralObject: IsNotFunction<object>;
83
+ export declare const assertLiteralObject: AssertFunction<object>;
84
+ export declare const assertNotLiteralObject: AssertNotFunction<object>;
85
+ export declare const assertLiteralObjectPass: AssertPassFunction<object>;
86
+ export declare const assertNotLiteralObjectPass: AssertNotPassFunction<object>;
87
+ export declare const isObject: IsFunction<object>;
88
+ export declare const isNotObject: IsNotFunction<object>;
89
+ export declare const assertObject: AssertFunction<object>;
90
+ export declare const assertNotObject: AssertNotFunction<object>;
91
+ export declare const assertObjectPass: AssertPassFunction<object>;
92
+ export declare const assertNotObjectPass: AssertNotPassFunction<object>;
93
+ export declare const isPrimitive: IsFunction<Primitive>;
94
+ export declare const isNotPrimitive: IsNotFunction<Primitive>;
95
+ export declare const assertPrimitive: AssertFunction<Primitive>;
96
+ export declare const assertNotPrimitive: AssertNotFunction<Primitive>;
97
+ export declare const assertPrimitivePass: AssertPassFunction<Primitive>;
98
+ export declare const assertNotPrimitivePass: AssertNotPassFunction<Primitive>;
99
+ export declare const isJsonPrimitive: IsFunction<JsonPrimitive>;
100
+ export declare const isNotJsonPrimitive: IsNotFunction<JsonPrimitive>;
101
+ export declare const assertJsonPrimitive: AssertFunction<JsonPrimitive>;
102
+ export declare const assertNotJsonPrimitive: AssertNotFunction<JsonPrimitive>;
103
+ export declare const assertJsonPrimitivePass: AssertPassFunction<JsonPrimitive>;
104
+ export declare const assertNotJsonPrimitivePass: AssertNotPassFunction<JsonPrimitive>;
105
+ export declare const isDate: IsFunction<Date>;
106
+ export declare const isNotDate: IsNotFunction<Date>;
107
+ export declare const assertDate: AssertFunction<Date>;
108
+ export declare const assertNotDate: AssertNotFunction<Date>;
109
+ export declare const assertDatePass: AssertPassFunction<Date>;
110
+ export declare const assertNotDatePass: AssertNotPassFunction<Date>;
111
+ export declare const isValidDate: IsFunction<Date>;
112
+ export declare const isNotValidDate: IsNotFunction<Date>;
113
+ export declare const assertValidDate: AssertFunction<Date>;
114
+ export declare const assertNotValidDate: AssertNotFunction<Date>;
115
+ export declare const assertValidDatePass: AssertPassFunction<Date>;
116
+ export declare const assertNotValidDatePass: AssertNotPassFunction<Date>;
117
+ export declare const isRegExp: IsFunction<RegExp>;
118
+ export declare const isNotRegExp: IsNotFunction<RegExp>;
119
+ export declare const assertRegExp: AssertFunction<RegExp>;
120
+ export declare const assertNotRegExp: AssertNotFunction<RegExp>;
121
+ export declare const assertRegExpPass: AssertPassFunction<RegExp>;
122
+ export declare const assertNotRegExpPass: AssertNotPassFunction<RegExp>;
123
+ export declare const isArray: <T = any>(value: any) => value is readonly T[];
124
+ export declare const isNotArray: IsNotFunction<readonly any[]>;
125
+ export declare const assertArray: <T = any>(value: any, message?: AssertionMessage) => asserts value is readonly T[];
126
+ export declare const assertNotArray: AssertNotFunction<readonly any[]>;
127
+ export declare const assertArrayPass: <T = any>(value: any, message?: AssertionMessage) => readonly T[];
128
+ export declare const assertNotArrayPass: AssertNotPassFunction<readonly any[]>;
129
+ export declare const isWritableArray: <T = any>(value: any) => value is T[];
130
+ export declare const isNotWritableArray: IsNotFunction<any[]>;
131
+ export declare const assertWritableArray: <T = any>(value: any, message?: AssertionMessage) => asserts value is T[];
132
+ export declare const assertNotWritableArray: AssertNotFunction<any[]>;
133
+ export declare const assertWritableArrayPass: <T = any>(value: any, message?: AssertionMessage) => T[];
134
+ export declare const assertNotWritableArrayPass: AssertNotPassFunction<any[]>;
135
+ export declare const isBlob: IsFunction<Blob>;
136
+ export declare const isNotBlob: IsNotFunction<Blob>;
137
+ export declare const assertBlob: AssertFunction<Blob>;
138
+ export declare const assertNotBlob: AssertNotFunction<Blob>;
139
+ export declare const assertBlobPass: AssertPassFunction<Blob>;
140
+ export declare const assertNotBlobPass: AssertNotPassFunction<Blob>;
141
+ export declare const isArrayBuffer: IsFunction<ArrayBuffer>;
142
+ export declare const isNotArrayBuffer: IsNotFunction<ArrayBuffer>;
143
+ export declare const assertArrayBuffer: AssertFunction<ArrayBuffer>;
144
+ export declare const assertNotArrayBuffer: AssertNotFunction<ArrayBuffer>;
145
+ export declare const assertArrayBufferPass: AssertPassFunction<ArrayBuffer>;
146
+ export declare const assertNotArrayBufferPass: AssertNotPassFunction<ArrayBuffer>;
147
+ export declare const isArrayBufferView: IsFunction<ArrayBufferView>;
148
+ export declare const isNotArrayBufferView: IsNotFunction<ArrayBufferView>;
149
+ export declare const assertArrayBufferView: AssertFunction<ArrayBufferView>;
150
+ export declare const assertNotArrayBufferView: AssertNotFunction<ArrayBufferView>;
151
+ export declare const assertArrayBufferViewPass: AssertPassFunction<ArrayBufferView>;
152
+ export declare const assertNotArrayBufferViewPass: AssertNotPassFunction<ArrayBufferView>;
153
+ export declare const isBinaryData: IsFunction<BinaryData>;
154
+ export declare const isNotBinaryData: IsNotFunction<BinaryData>;
155
+ export declare const assertBinaryData: AssertFunction<BinaryData>;
156
+ export declare const assertNotBinaryData: AssertNotFunction<BinaryData>;
157
+ export declare const assertBinaryDataPass: AssertPassFunction<BinaryData>;
158
+ export declare const assertNotBinaryDataPass: AssertNotPassFunction<BinaryData>;
159
+ export declare const isInt8Array: IsFunction<Int8Array>;
160
+ export declare const isNotInt8Array: IsNotFunction<Int8Array>;
161
+ export declare const assertInt8Array: AssertFunction<Int8Array>;
162
+ export declare const assertNotInt8Array: AssertNotFunction<Int8Array>;
163
+ export declare const assertInt8ArrayPass: AssertPassFunction<Int8Array>;
164
+ export declare const assertNotInt8ArrayPass: AssertNotPassFunction<Int8Array>;
165
+ export declare const isUint8Array: IsFunction<Uint8Array>;
166
+ export declare const isNotUint8Array: IsNotFunction<Uint8Array>;
167
+ export declare const assertUint8Array: AssertFunction<Uint8Array>;
168
+ export declare const assertNotUint8Array: AssertNotFunction<Uint8Array>;
169
+ export declare const assertUint8ArrayPass: AssertPassFunction<Uint8Array>;
170
+ export declare const assertNotUint8ArrayPass: AssertNotPassFunction<Uint8Array>;
171
+ export declare const isUint8ClampedArray: IsFunction<Uint8ClampedArray>;
172
+ export declare const isNotUint8ClampedArray: IsNotFunction<Uint8ClampedArray>;
173
+ export declare const assertUint8ClampedArray: AssertFunction<Uint8ClampedArray>;
174
+ export declare const assertNotUint8ClampedArray: AssertNotFunction<Uint8ClampedArray>;
175
+ export declare const assertUint8ClampedArrayPass: AssertPassFunction<Uint8ClampedArray>;
176
+ export declare const assertNotUint8ClampedArrayPass: AssertNotPassFunction<Uint8ClampedArray>;
177
+ export declare const isInt16Array: IsFunction<Int16Array>;
178
+ export declare const isNotInt16Array: IsNotFunction<Int16Array>;
179
+ export declare const assertInt16Array: AssertFunction<Int16Array>;
180
+ export declare const assertNotInt16Array: AssertNotFunction<Int16Array>;
181
+ export declare const assertInt16ArrayPass: AssertPassFunction<Int16Array>;
182
+ export declare const assertNotInt16ArrayPass: AssertNotPassFunction<Int16Array>;
183
+ export declare const isUint16Array: IsFunction<Uint16Array>;
184
+ export declare const isNotUint16Array: IsNotFunction<Uint16Array>;
185
+ export declare const assertUint16Array: AssertFunction<Uint16Array>;
186
+ export declare const assertNotUint16Array: AssertNotFunction<Uint16Array>;
187
+ export declare const assertUint16ArrayPass: AssertPassFunction<Uint16Array>;
188
+ export declare const assertNotUint16ArrayPass: AssertNotPassFunction<Uint16Array>;
189
+ export declare const isInt32Array: IsFunction<Int32Array>;
190
+ export declare const isNotInt32Array: IsNotFunction<Int32Array>;
191
+ export declare const assertInt32Array: AssertFunction<Int32Array>;
192
+ export declare const assertNotInt32Array: AssertNotFunction<Int32Array>;
193
+ export declare const assertInt32ArrayPass: AssertPassFunction<Int32Array>;
194
+ export declare const assertNotInt32ArrayPass: AssertNotPassFunction<Int32Array>;
195
+ export declare const isUint32Array: IsFunction<Uint32Array>;
196
+ export declare const isNotUint32Array: IsNotFunction<Uint32Array>;
197
+ export declare const assertUint32Array: AssertFunction<Uint32Array>;
198
+ export declare const assertNotUint32Array: AssertNotFunction<Uint32Array>;
199
+ export declare const assertUint32ArrayPass: AssertPassFunction<Uint32Array>;
200
+ export declare const assertNotUint32ArrayPass: AssertNotPassFunction<Uint32Array>;
201
+ export declare const isFloat32Array: IsFunction<Float32Array>;
202
+ export declare const isNotFloat32Array: IsNotFunction<Float32Array>;
203
+ export declare const assertFloat32Array: AssertFunction<Float32Array>;
204
+ export declare const assertNotFloat32Array: AssertNotFunction<Float32Array>;
205
+ export declare const assertFloat32ArrayPass: AssertPassFunction<Float32Array>;
206
+ export declare const assertNotFloat32ArrayPass: AssertNotPassFunction<Float32Array>;
207
+ export declare const isFloat64Array: IsFunction<Float64Array>;
208
+ export declare const isNotFloat64Array: IsNotFunction<Float64Array>;
209
+ export declare const assertFloat64Array: AssertFunction<Float64Array>;
210
+ export declare const assertNotFloat64Array: AssertNotFunction<Float64Array>;
211
+ export declare const assertFloat64ArrayPass: AssertPassFunction<Float64Array>;
212
+ export declare const assertNotFloat64ArrayPass: AssertNotPassFunction<Float64Array>;
213
+ export declare const isBigInt64Array: IsFunction<BigInt64Array>;
214
+ export declare const isNotBigInt64Array: IsNotFunction<BigInt64Array>;
215
+ export declare const assertBigInt64Array: AssertFunction<BigInt64Array>;
216
+ export declare const assertNotBigInt64Array: AssertNotFunction<BigInt64Array>;
217
+ export declare const assertBigInt64ArrayPass: AssertPassFunction<BigInt64Array>;
218
+ export declare const assertNotBigInt64ArrayPass: AssertNotPassFunction<BigInt64Array>;
219
+ export declare const isBigUint64Array: IsFunction<BigUint64Array>;
220
+ export declare const isNotBigUint64Array: IsNotFunction<BigUint64Array>;
221
+ export declare const assertBigUint64Array: AssertFunction<BigUint64Array>;
222
+ export declare const assertNotBigUint64Array: AssertNotFunction<BigUint64Array>;
223
+ export declare const assertBigUint64ArrayPass: AssertPassFunction<BigUint64Array>;
224
+ export declare const assertNotBigUint64ArrayPass: AssertNotPassFunction<BigUint64Array>;
225
+ export declare const isDataView: IsFunction<DataView>;
226
+ export declare const isNotDataView: IsNotFunction<DataView>;
227
+ export declare const assertDataView: AssertFunction<DataView>;
228
+ export declare const assertNotDataView: AssertNotFunction<DataView>;
229
+ export declare const assertDataViewPass: AssertPassFunction<DataView>;
230
+ export declare const assertNotDataViewPass: AssertNotPassFunction<DataView>;
231
+ export declare const isTypedArray: IsFunction<TypedArray>;
232
+ export declare const isNotTypedArray: IsNotFunction<TypedArray>;
233
+ export declare const assertTypedArray: AssertFunction<TypedArray>;
234
+ export declare const assertNotTypedArray: AssertNotFunction<TypedArray>;
235
+ export declare const assertTypedArrayPass: AssertPassFunction<TypedArray>;
236
+ export declare const assertNotTypedArrayPass: AssertNotPassFunction<TypedArray>;
237
+ export declare const isSet: IsFunction<Set<any>>;
238
+ export declare const isNotSet: IsNotFunction<Set<any>>;
239
+ export declare const assertSet: AssertFunction<Set<any>>;
240
+ export declare const assertNotSet: AssertNotFunction<Set<any>>;
241
+ export declare const assertSetPass: AssertPassFunction<Set<any>>;
242
+ export declare const assertNotSetPass: AssertNotPassFunction<Set<any>>;
243
+ export declare const isMap: IsFunction<Map<any, any>>;
244
+ export declare const isNotMap: IsNotFunction<Map<any, any>>;
245
+ export declare const assertMap: AssertFunction<Map<any, any>>;
246
+ export declare const assertNotMap: AssertNotFunction<Map<any, any>>;
247
+ export declare const assertMapPass: AssertPassFunction<Map<any, any>>;
248
+ export declare const assertNotMapPass: AssertNotPassFunction<Map<any, any>>;
249
+ export declare const isPromise: IsFunction<Promise<any>>;
250
+ export declare const isNotPromise: IsNotFunction<Promise<any>>;
251
+ export declare const assertPromise: AssertFunction<Promise<any>>;
252
+ export declare const assertNotPromise: AssertNotFunction<Promise<any>>;
253
+ export declare const assertPromisePass: AssertPassFunction<Promise<any>>;
254
+ export declare const assertNotPromisePass: AssertNotPassFunction<Promise<any>>;
255
+ export declare const isError: IsFunction<Error>;
256
+ export declare const isNotError: IsNotFunction<Error>;
257
+ export declare const assertError: AssertFunction<Error>;
258
+ export declare const assertNotError: AssertNotFunction<Error>;
259
+ export declare const assertErrorPass: AssertPassFunction<Error>;
260
+ export declare const assertNotErrorPass: AssertNotPassFunction<Error>;
261
+ export declare const isReadableStream: <T = any>(value: any) => value is ReadableStream<T>;
262
+ export declare const isNotReadableStream: IsNotFunction<ReadableStream>;
263
+ export declare const assertReadableStream: <T = any>(value: any, message?: AssertionMessage) => asserts value is ReadableStream<T>;
264
+ export declare const assertNotReadableStream: AssertNotFunction<ReadableStream>;
265
+ export declare const assertReadableStreamPass: <T = any>(value: any, message?: AssertionMessage) => ReadableStream<T>;
266
+ export declare const assertNotReadableStreamPass: AssertNotPassFunction<ReadableStream>;