declare class Request { readonly url: string; readonly token: string; readonly request: any; readonly headers: any; readonly parser: (d: any) => any; constructor(url: string, token: string); /** * * @param key namespace 或者是 id */ toc(key: string): Promise; /** * * @param key slug 或者是 id */ doc(reposKey: string, docKey: string): Promise; repo(key: string): Promise; } export default Request;