import { ValidationException } from './ValidationException'; /** * Is the value a Map with no entries? * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map * * @example * ```ts * isEmptyMap(new Map()) // true * isEmptyMap(new Map([['foo', 'bar']])) // false * ``` * * @param value the value to check * @returns a boolean indicating whether the value is the expected type */ export declare const isEmptyMap: (value: unknown | Map) => value is Map; /** * Validate that the value is a Map with no entries. * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map * * @example * ```ts * validateEmptyMap(new Map()) // null * validateEmptyMap(new Map([['foo', 'bar']])) // ValidationException * ``` * * @param value the value to check * @returns `null` if the value is the expected type or a `ValidationException` * if not */ export declare const validateEmptyMap: (value: unknown) => ValidationException | null; /** * Assert that the value is a Map with no entries. * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map * * @example * ```ts * assertEmptyMap(new Map()) // void * assertEmptyMap(new Map([['foo', 'bar']])) // throws AssertionException * ``` * * @param value the value to check * @throws an `AssertionException` if the value is not the expected type */ export declare const assertEmptyMap: (value: unknown | Map) => asserts value is Map;