import * as either from "./either.exports"; export type Either = either.Either; export type SerializedEither = either.SerializedEither; type EitherExports = { merge: typeof either.merge; mergeInOne: typeof either.mergeInOne; mergeInMany: typeof either.mergeInMany; left: typeof either.left; right: typeof either.right; chain: typeof either.chain; fromPromise: typeof either.fromPromise; fromTry: typeof either.fromTry; fromTryAsync: typeof either.fromTryAsync; fromJSON: typeof either.fromJSON; from: typeof either.from; fromMaybe: typeof either.fromMaybe; fromPromiseSettledResult: typeof either.fromPromiseSettledResult; aggregateError: typeof either.aggregateError; isEither: typeof either.isEither; isRight: typeof either.isRight; isLeft: typeof either.isLeft; catch: typeof either.catchSync; catchAsync: typeof either.catchAsync; wrap: typeof either.wrap; wrapAsync: typeof either.wrapAsync; }; /** * @deprecated This is created only for compatibility with old nodejs. This is not tree-shakable. Prefer importing from `monads-io/either` */ export declare const Either: Readonly; import * as maybe from "./maybe.exports"; export type Maybe = maybe.Maybe; export type SerializedMaybe = maybe.SerializedMaybe; type MaybeExports = { just: typeof maybe.just; none: typeof maybe.none; from: typeof maybe.from; chain: typeof maybe.chain; merge: typeof maybe.merge; fromNullable: typeof maybe.fromNullable; fromJSON: typeof maybe.fromJSON; isMaybe: typeof maybe.isMaybe; fromEitherRight: typeof maybe.fromEitherRight; fromEitherLeft: typeof maybe.fromEitherLeft; isJust: typeof maybe.isJust; isNone: typeof maybe.isNone; iterator: typeof maybe.iterator; asyncIterator: typeof maybe.asyncIterator; filterMap: typeof maybe.filterMap; }; /** * @deprecated This is created only for compatibility with old nodejs. This is not tree-shakable. Prefer importing from `monads-io/maybe` */ export declare const Maybe: Readonly; import * as identity from "./identity.exports"; export type Identity = identity.Identity; export declare const Identity: Readonly<{ from: typeof identity.Identity.from; chain: typeof identity.chain; isIdentity: (value: unknown | identity.Identity) => value is identity.Identity; merge: typeof identity.merge; }>; export type { MaybePromise, MaybePromiseLike, Nullable, AnyParameters, Pair, Alternative, Applicative, AsyncMonad, Container, Functor, Monad } from './types.js'; export { identity, noop, throwValue, bind, combine, unwrap } from './runtime.js'; export { DecorationError, DeserializationError, InvalidStateError, UnwrapCustomError } from './errors.js';