import { ValidationException } from './ValidationException'; /** * Is the value a plain object with no entries? * See: https://masteringjs.io/tutorials/fundamentals/pojo * * @example * ```ts * isEmptyObject({}) // true * isEmptyObject({ foo: 'bar' }) // false * ``` * * @param value the value to check * @returns a boolean indicating whether the value is the expected type */ export declare const isEmptyObject: (value: unknown | Record) => value is Record; /** * Validate that the value is a plain object with no entries. * See: https://masteringjs.io/tutorials/fundamentals/pojo * * @example * ```ts * validateEmptyObject({}) // null * validateEmptyObject({ 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 validateEmptyObject: (value: unknown) => ValidationException | null; /** * Assert that the value is a plain object with no entries. * See: https://masteringjs.io/tutorials/fundamentals/pojo * * @example * ```ts * assertEmptyObject({}) // void * assertEmptyObject({ foo: 'bar' }) // throws AssertionException * ``` * * @param value the value to check * @throws an `AssertionException` if the value is not the expected type */ export declare const assertEmptyObject: (value: unknown | Record) => asserts value is Record;