export default function (str: string, fn?: string): string;