import type { AnyRecord, Fn, Option } from '@chzky/core'; /** ## `find_with_key` : 根据`keyname`找`value` @example ```ts const list = { name: 'jiojio', age: 19 } const result = find_with_key(key => key === 'name')(list) assert.equal(result, Some('jiojio')) const result2 = find_with_key(list, key => key === 'age') assert.equal(result2, Some(19)) //@ts-expect-error : pass test const result3 = find_with_key(list, key => key === 'gender') assert.equal(result3, None) ``` @category Collect */ export declare function find_with_key(callback: Fn): Fn>; export declare function find_with_key(obj: T, callback: Fn): Option; //# sourceMappingURL=findWithKey.d.ts.map