import { Result } from '@tsfun/prv-option-result-common'; import { Option } from './option'; /** * Convert `ok(x)` to an `some(x)` * and convert `err(_)` to `none()` * @param result Result to convert * @returns Corresponding `Option` * * In reality, this function merely returns the same object it takes * since `Result` interface is compatible with `Option` */ export declare const expectOk: (result: Result) => Option; export default expectOk;