/** * Initializes fonts by fetching the font data from a specified path. * * The function returns an array containing an object with the font data and the original font object properties (`name`, `style`, `weight`). * * @param {Object} params - The parameters for initializing fonts. * @param {string} params.fontPath - The path to fetch the font data from. * @param {Object} params.fontObj - The original font object. * @param {string} params.fontObj.name - The name of the font. * @param {string} params.fontObj.style - The style of the font. * @param {number} params.fontObj.weight - The weight of the font. * * @example * initFonts({ * fontPath: '/path/to/font', * fontObj: { * name: 'My Font', * style: 'normal', * weight: 400 * } * }).then(fonts => { * // Use the fonts... * }); */ export declare function initFonts({ fontPath, fontObj, }: { fontPath: string; fontObj: { name: string; style: string; weight: number; }; }): Promise>;