@gt6/sdk
Version:
GT6 SDK for articles management - A comprehensive JavaScript/TypeScript library for managing articles, categories, and tags in GT6 platform
29 lines • 597 B
TypeScript
import { GT6Config } from './types';
export declare class GT6Client {
private config;
private cache;
constructor(config: GT6Config);
/**
* 发起HTTP请求
*/
request<T>(endpoint: string, options?: RequestInit): Promise<T>;
/**
* 获取配置
*/
getConfig(): GT6Config;
/**
* 清除缓存
*/
clearCache(): void;
/**
* 获取缓存统计
*/
getCacheStats(): {
size: number;
entries: Array<{
key: string;
age: number;
}>;
};
}
//# sourceMappingURL=client.d.ts.map