/** * 轻量 Result 类型,供 core 与 adapter 共享。 */ export type Ok = { ok: true; value: T; }; export type Err = { ok: false; error: E; }; export type Result = Ok | Err; /** * 构造成功结果。 */ export declare function ok(value: T): Ok; /** * 构造失败结果。 */ export declare function err(error: E): Err; //# sourceMappingURL=result.d.ts.map