/** * Result type for operations that can fail * Provides type-safe error handling without exceptions */ export type Result = { ok: true; value: T; } | { ok: false; error: E; }; /** * Create a successful result */ export declare function Ok(value: T): Result; /** * Create a failed result */ export declare function Err(error: E): Result; /** * Unwrap a result, throwing if it's an error */ export declare function unwrap(result: Result): T; /** * Get value or default */ export declare function unwrapOr(result: Result, defaultValue: T): T; //# sourceMappingURL=types.d.ts.map