/** * Assertion function with fixable stack for better error messages */ export declare function assert(cond: boolean, message: string, offsetStack?: number): void; /** * Given object is null or undefined */ export declare function isNil(ob: any): ob is null | undefined; /** * Given object is NOT null or undefined */ export declare function notNil(ob: T): ob is Exclude; /** * Asserts that given object is not false, null or undefined */ export declare function assertNotNil(ob: T, msg?: string): asserts ob is Exclude; export declare function is(ob: any, value: T): ob is T; export declare function assertIs(ob: any, value: T, msg?: string): asserts ob is T; export declare function assertNotBrowser(): void; /** * Asserts that the given value is not any type */ export declare function assertNotAny(value: NotAny): void; declare type IsAny = unknown extends T ? (T extends {} ? T : never) : never; declare type NotAny = T extends IsAny ? never : T; /** * Assert that the type of the `value` is assignable to the type T */ export declare function assertType(value: T): void; export {}; //# sourceMappingURL=index.d.ts.map