UNPKG

chonkie

Version:

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

21 lines (20 loc) • 549 B
/** Base cloud client for Chonkie API. */ export interface CloudClientConfig { apiKey: string; baseUrl?: string; } export interface ChunkerInput { text?: string; filepath?: string; } export declare class CloudClient { private readonly apiKey; private readonly baseUrl; constructor(config: CloudClientConfig); protected request<T>(endpoint: string, options?: { method?: string; body?: any; headers?: Record<string, string>; }): Promise<T>; protected validateAuth(): Promise<boolean>; }