import type {ImmutableTree} from './types'; export default function map( tree: ImmutableTree, mapper: (value: T) => U, ): ImmutableTree;