import type { Codec, Constructor, InterfaceTypes, Registry } from '../types'; import { Enum } from './Enum'; /** * @name Result * @description * A Result maps to the Rust Result type, that can either wrap a success or error value */ export declare class Result extends Enum { constructor(registry: Registry, Ok: Constructor | keyof InterfaceTypes, Err: Constructor | keyof InterfaceTypes, value?: unknown); static with(Types: { Ok: Constructor | keyof InterfaceTypes; Err: Constructor | keyof InterfaceTypes; }): Constructor>; /** * @description Returns the wrapper Err value (if isErr) */ get asErr(): E; /** * @deprecated Use asErr */ get asError(): E; /** * @description Returns the wrapper Ok value (if isOk) */ get asOk(): O; /** * @description Checks if the Result has no value */ get isEmpty(): boolean; /** * @description Checks if the Result wraps an Err value */ get isErr(): boolean; /** * @deprecated Use isErr */ get isError(): boolean; /** * @description Checks if the Result wraps an Ok value */ get isOk(): boolean; /** * @description Returns the base runtime type name for this instance */ toRawType(): string; }