/** * [[include:option-utils/README.md]] * @module */ /** * Optional type. */ export declare type Maybe = T | null | undefined; /** * Applies a function to a list of null/undefined values, unwrapping the null/undefined value or passing it through. */ export declare const mapN: (fn: (...a: { [K in keyof T]: NonNullable; }) => U, ...args: T) => U | null | undefined; /** * Applies a function to a null/undefined inner value if it is null or undefined, * otherwise returns null/undefined. * * For consistency reasons, we recommend just using {@link mapN} in all cases. * * @deprecated use {@link mapN} * @param obj * @param fn * @returns */ export declare const mapSome: (obj: NonNullable | null | undefined, fn: (obj: NonNullable) => U) => U | null | undefined; /** * Checks to see if the provided value is not null. * * Useful for preserving types in filtering out non-null values. * * @param value * @returns */ export declare const isNotNull: (value: TValue | null) => value is TValue; /** * Checks to see if the provided value is not undefined. * * @param value * @returns */ export declare const isNotUndefined: (value: TValue | undefined) => value is TValue; /** * Checks to see if the provided value is not null or undefined. * * @param value * @returns */ export declare const exists: (value: TValue | null | undefined) => value is TValue; //# sourceMappingURL=index.d.ts.map