import { Just } from './Just'; import { Nothing } from './Nothing'; export declare type Maybe = Just | Nothing; export declare type MaybeOf = { [K in keyof A]: Maybe; }; export declare type MaybeValue> = A extends Maybe ? R : never; export declare namespace Maybe { /** * Creates a Maybe containing a value. If the value is `undefined` or `null` * a `Nothing` will be returned. All other values will be wrapped in a `Just`. * @name Maybe.of(value: A): Maybe */ const of: (value: void | A | null | undefined) => Maybe; const fromString: (str: string | null | undefined | void) => Maybe; } //# sourceMappingURL=Maybe.d.ts.map