import type { AsyncErr, ErrResult, Result } from './types'; type ErrType = ErrResult; declare class Err implements ErrResult { readonly error: E; constructor(error: E); get isOk(): false; get isErr(): true; get isError(): true; get value(): never; map(): this; mapErr(fn: (error: E) => F): Err; chain(): this; chainErr(next: (error: E) => Result): Result; unwrap(): never; unwrapOr(fallback: S): S; unwrapOrElse(fallback: (error: E) => S): S; unwrapErr(): E; unwrapErrOr(): E; unwrapErrOrElse(): E; unpack(): E; match(okMatcher: (data: never) => TR, errMatcher: (error: E) => ER): ER; tap(): this; tapErr(fn: (error: E) => void): this; [Symbol.iterator](): Generator; unwrapOrThrow(): never; biMap(_: unknown, errFn: (error: E) => F): Err; biChain(_: unknown, errFn: (error: E) => Result): Result; asTuple(): [ok: false, error: E, value: undefined]; get [Symbol.toStringTag](): string; } export declare const ErrImpl: typeof Err; export declare const err: (error: E) => ErrType; export declare const asyncErr: (error: E | Promise) => AsyncErr; export {};