/** * Result type for operations that may fail * Provides type-safe error handling with discriminated unions */ /** * Result type that represents either success with data or failure with error */ export type Result = { success: true; data: T; } | { success: false; error: E; }; /** * Helper function to create a successful Result * @param data The data to wrap in a successful Result * @returns A successful Result containing the data */ export declare function Ok(data: T): Result; /** * Helper function to create an error Result * @param error The error to wrap in a failed Result * @returns A failed Result containing the error */ export declare function Err(error: E): Result; //# sourceMappingURL=result.d.ts.map