import { ValidationException } from './ValidationException'; /** * Is the value an arrow function? * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions * * @example * ```ts * isArrowFunction(() => 'a') // true * isArrowFunction(function () {}) // false * ``` * * @param value the value to check * @returns a boolean indicating whether the value is the expected type */ export declare const isArrowFunction: (value: unknown) => value is Function; /** * Validate that the value is an arrow function. * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions * * @example * ```ts * validateArrowFunction(() => 'a') // null * validateArrowFunction(function () {}) // ValidationException * ``` * * @param value the value to check * @returns `null` if the value is the expected type or a `ValidationException` * if not */ export declare const validateArrowFunction: (value: unknown) => ValidationException | null; /** * Assert that the value is an arrow function. * See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions * * @example * ```ts * assertArrowFunction(() => 'a') // void * assertArrowFunction(function () {}) // throws AssertionException * ``` * * @param value the value to check * @throws an `AssertionException` if the value is not the expected type */ export declare const assertArrowFunction: (value: unknown) => asserts value is Function;