declare const ResultDoesNotContainError_base: import("./CustomErrorConstructor").CustomErrorConstructor; declare class ResultDoesNotContainError extends ResultDoesNotContainError_base { } interface ResultBase { hasError: () => this is ResultError; hasValue: () => this is ResultValue; unwrapOrThrow: (errorTransformer?: (err: TError) => Error) => TValue; unwrapOrElse: (handleError: (error: Error) => TValue) => TValue; unwrapOrDefault: (defaultValue: TDefault) => TValue | TDefault; unwrapErrorOrThrow: () => TError; } interface ResultError extends ResultBase { error: TError; } declare const error: (err: TError) => ResultError; interface ResultValue extends ResultBase { value: TValue; } declare const value: { (): ResultValue; (value: TValue): ResultValue; }; declare type Result = ResultValue | ResultError; export type { ResultValue, ResultError, Result }; export { ResultDoesNotContainError, value, error };