/** * Copyright 2017-present Palantir Technologies, Inc. All rights reserved. * Licensed under the BSD-3 License as modified (the “License”); you may obtain * a copy of the license in the LICENSE and PATENTS files in the root of this * repository. */ /** * Splits the `text` string into words and invokes the `callback` for each word that is * found in the `data` record. If not found, the word appears unchanged in the output * array. * * Example: * ```tsx * linkify("string | ITag", docs.typescript, (name) => {name}) * // => * ["string", " | ", ITag] * ``` */ export declare function linkify(text: string, data: Record, callback: (name: string, data: D, index: number) => T): Array; /** * Slugify a string: "Really Cool Heading!" => "really-cool-heading-" */ export declare function slugify(str: string): string;