import { WebPartContext } from '@microsoft/sp-webpart-base'; import { FileBrowserService } from './FileBrowserService'; import { FilesQueryResult } from './FileBrowserService.types'; export declare class OneDriveService extends FileBrowserService { protected oneDrivePersonalUrl: string; protected oneDriveRootFolderRelativeUrl: string; protected oneDriveRootFolderAbsoluteUrl: string; protected oneDrivePersonalLibraryTitle: string; constructor(context: WebPartContext, itemsToDownloadCount?: number); /** * Gets files from OneDrive personal library */ getListItems: (listUrl: string, folderPath?: string, acceptedFilesExtensions?: string[], nextPageQueryStringParams?: string) => Promise; /** * Downloads document content from OneDrive location. */ downloadSPFileContent: (absoluteFileUrl: string, fileName: string) => Promise; /** * Gets users one drive personal documents library path */ getOneDriveRootFolderFullUrl: () => Promise; /** * Gets OneDrive RootFolder server relative URL. */ getOneDriveRootFolderRelativeUrl: () => Promise; /** * Gets OneDrive personal library Title */ getOneDrivePersonalLibraryTitle: () => Promise; /** * Gets personal site path. */ private getOneDrivePersonalUrl; /** * Creates an absolute URL */ protected buildAbsoluteUrl: (relativeUrl: string) => string; }