export * from './helpers'; export * from './api'; declare type Options = { accessToken: string; }; export default class OneDriveApi { private accessToken; constructor({ accessToken }: Options); /** * Upload file smaller than 4MB * @param file * @param path * @returns */ private uploadSmallFile; /** * Generate upload url for files * larger than 4MB and smaller than 60MB * @param filePath * @returns */ private createUploadSession; /** * Upload file chunks * @param file * @param url * @param range * @returns */ private uploadLargeFileChunk; /** * Upload files larger than 4MB and smaller than 60MB * @param file * @param filePath * @returns */ private uploadLargeFile; /** * Upload file. Note that the file size should be smaller than 60MB * @param file * @param filePath * @returns */ upload(file: File, filePath: string): Promise<{ id: string; }>; share(fileId: string): Promise<{ shareId: string; }>; }