UNPKG

chonkie

Version:

🦛 CHONK your texts in TS with Chonkie!✨The no-nonsense lightweight and efficient chunking library.

28 lines (27 loc) • 840 B
/** * Hubbie is a Huggingface hub manager for Chonkie. */ export declare class Hubbie { private static readonly SCHEMA_VERSION; private readonly getRecipeConfig; private readonly recipeSchema; constructor(); /** * Get the current recipe schema from the hub. */ private getRecipeSchema; /** * Validate a recipe against the current schema. */ private validateRecipe; /** * Get a recipe from the hub. * * @param name - The name of the recipe to get * @param language - The language of the recipe to get * @param filePath - Optionally, provide the path to the recipe * @returns The recipe * @throws Error if the recipe is not found or invalid */ getRecipe(name?: string, language?: string, filePath?: string): Promise<Record<string, any>>; }