import { CustomError } from './CustomError'; import { CustomErrorConstructor } from './CustomErrorConstructor'; import { error, Result, value } from './Result'; declare const HydratingResultFailed_base: CustomErrorConstructor; declare class HydratingResultFailed extends HydratingResultFailed_base { } declare const hydrateResult: ({ rawResult, potentialErrorConstructors }: { rawResult: { value: TValue; } | { error: TError; }; potentialErrorConstructors?: CustomErrorConstructor[] | undefined; }) => Result>, HydratingResultFailed>; export { hydrateResult };