import { Optional } from "./core"; /** * https://developer.mozilla.org/en-US/docs/Glossary/Truthy * @param ctxObject it can be null or undefined * @param receiverFn lambda that accepts `it`; only runs if `ctxObject` property is truthy * @return ctxObject the first argument */ export declare const _callIfTruthy: (ctxObject: Optional, receiverFn: TruthyReceiverFn) => Optional; export declare type TruthyReceiverFn = (it: T) => void; export declare const _callIfTruthyWithReturn: (ctxObject: Optional, onTrue: TruthyReceiverWithReturnValueFn, onFalse: SimpleReceiverWithReturnValueFn) => R; export declare type TruthyReceiverWithReturnValueFn = (it: T) => R; /** * https://developer.mozilla.org/en-US/docs/Glossary/Falsy * @param ctxObject it can be null or undefined * @param receiverFn lambda that only runs if `ctxObject` property is falsy */ export declare const _callIfFalsy: (ctxObject: unknown, receiverFn: FalsyReceiverFn) => void; export declare type FalsyReceiverFn = () => void; export declare const _repeat: (count: number, fun: () => void) => void; export declare const _callIfTrue: (ctxObject: boolean, onTrueReceiverFn: SimpleReceiverFn, onFalseReceiverFn?: SimpleReceiverFn | undefined) => void; export declare const _callIfFalse: (ctxObject: boolean, onFalseReceiverFn: SimpleReceiverFn, onTrueReceiverFn?: SimpleReceiverFn | undefined) => void; export declare type SimpleReceiverFn = () => void; export declare const _callIfTrueWithReturn: (ctxObject: boolean, onTrueReceiverFn: SimpleReceiverWithReturnValueFn, onFalseReceiverFn: SimpleReceiverWithReturnValueFn) => T; export declare type SimpleReceiverWithReturnValueFn = () => T;