export declare function ok(r: T): Ok; export declare function err(e: { new (string: any): E; }): Err; export default abstract class Result { abstract expect(msg: string): T; abstract unwrap(): T; } declare class Ok extends Result { private r; constructor(r: T); expect(msg: string): T; unwrap(): T; } declare class Err extends Result { private e; constructor(e: { new (string: any): E; }); expect(msg: string): R; unwrap(): R; } export {}; //# sourceMappingURL=Result.d.ts.map