/** * Fragments a text into parts based on a specific pattern, allowing * for the identification of keys and values that can be formatted in bold. * * @param {string} text - The text to be fragmented, containing patterns in the format [[value].key-b]. * @param {string} [format="<*>"] - The output format that surrounds the extracted keys. * The '*' character will be replaced by the found key. * @returns {{ text: string; frags: { key: string; value: string; bold: boolean }[] }} * - An object containing the formatted text and an array of fragments. * * @example * const result = Fragmenter("Hello [world].world-b", "<*>"); * console.log(result); * // Expected output: * // { * // text: 'Hello ', * // frags: [ * // { key: 'world', value: 'world', bold: true }, * // ] * // } */ export declare function Fragmenter(text: string, format?: string): { text: string; frags: { key: string; value: string; bold: boolean; }[]; };