import type {ImmutableTree} from './types'; export default function indexOf( tree: ImmutableTree, key: K, cmp: (a: K, b: T) => number, ): number;