import type { _A, _E, _R } from "../Effect/index.js";
import { flow } from "./flow.js";
import { pipe } from "./pipe.js";
export { flow, pipe };
/**
* Models () => A
*/
export interface Lazy {
(): A;
}
/**
* Models (a: A) => boolean
*/
export interface Predicate {
(a: A): boolean;
}
/**
* Models (a: A) => a is B
*/
export interface Refinement {
(a: A): a is B;
}
/**
* Models (a: A) => A
*/
export interface Endomorphism {
(a: A): A;
}
/**
* Models (...args: A) => B
*/
export interface FunctionN, B> {
(...args: A): B;
}
/**
* Will raise if called
*/
export declare function absurd(_: never): A;
/**
* A constant function that always return A
*/
export declare function constant(a: A): Lazy;
/**
* A thunk that returns always `false`
*/
export declare const constFalse: () => boolean;
/**
* A thunk that returns always `null`
*/
export declare const constNull: () => null;
/**
* A thunk that returns always `true`
*/
export declare const constTrue: () => boolean;
/**
* A thunk that returns always `undefined`
*/
export declare const constUndefined: () => undefined;
/**
* A thunk that returns always `void`
*/
export declare const constVoid: () => void;
/**
* Flips the order of the arguments of a function of two arguments.
*/
export declare function flip(f: (a: A, b: B) => C): (b: B, a: A) => C;
/**
* Identity function
*
* @ets_optimize identity
*/
export declare function identity(a: A): A;
/**
* Force string to be literal
*
* @ets_optimize identity
*/
export declare function literal(k: K): K;
/**
* Inverts a boolean predicate
*/
export declare function not(predicate: Predicate): Predicate;
/**
* Construct tuples
*/
export declare function tuple>(...t: T): Readonly;
/**
* Creates a tupled version of this function: instead of `n` arguments, it accepts a single tuple argument.
*
* @example
* const add = tupled((x: number, y: number): number => x + y)
*
* assert.strictEqual(add([1, 2]), 3)
*/
export declare function tupled, B>(f: (...a: A) => B): (a: Readonly) => B;
/**
* Inverse function of `tupled`
*/
export declare function untupled, B>(f: (a: Readonly) => B): (...a: A) => B;
/**
* Performs unsafe coercion of types
*
* @ets_optimize identity
*/
export declare function unsafeCoerce(a: A): B;
/**
* Type Hole, to be used while implementing functions where you need a placeholder
*/
export declare function hole(): T;
/**
* Requires _A to be the one specified
*/
export declare function enforceOutput(): A;
}>(_: T) => T;
/**
* Requires _E to be the one specified
*/
export declare function enforceError(): E;
}>(_: T) => T;
/**
* Requires _R to be the one specified
*/
export declare function enforceContext(): void;
}>(_: T) => T;
/**
* Increments a number by one
*/
export declare function increment(n: number): number;
/**
* Decrements a number by one
*/
export declare function decrement(n: number): number;
//# sourceMappingURL=core.d.ts.map