import { TypedHash } from "@pnp/common"; import { FieldAddResult, ItemAddResult, ItemUpdateResult } from "@pnp/sp"; import { Observable } from 'rxjs'; import { HelperService } from 'dnp-helper'; export declare class SharepointService { private help; constructor(help: HelperService); ping(): void; setup(url: string, token: string): Observable>; add(listName: string, properties?: TypedHash, listItemEntityTypeFullName?: string): Observable; delete(listName: string, id: number): Observable; getAll(listName: string, size?: number): Observable; getAllWithSelectAndExpand(listName: string, select: string[], expand: string[], normaliseData?: boolean, size?: number): Observable; getListFields(list: { Title: string; }): Observable; getFiles(url: string): Observable; getFilesAndListFields(folder: string, subsite: string): Observable; getFileContent(url: string): Observable; getById(listName: string, id: number): Observable; getWithQuery(query: any): Observable; update(listName: string, id: number, properties?: TypedHash, eTag?: string, listItemEntityTypeFullName?: string): Observable; updateMultiple(listName: string, idList: number[], itemList?: TypedHash[]): Observable; updateAll(listName: string, idList: number[], itemList?: TypedHash[]): Observable; upsert(id: any): Observable<{}>; simpleBatch(): void; createList(title: string, description?: string): Observable; deleteList(listName: string): Observable; addColumn(list: { Title: string; }, cols: { name: string; type: string; values: string[]; required: boolean; }[]): Observable; addView(list: { Title: string; }, cols: { name: string; type: string; }[], viewName?: string): Observable<{ text: string; }>; addMultiple(listName: string, objList: any[]): Observable; addBatch(listItem: { Title: string; }, objList: any[]): Observable; executeAddBatch(listTitle: string, itemEntityType: string, data: IBatchCreationData[], index?: number, batchSize?: any): any; readFile(url: string, subsite?: string): Observable; readCSVFileFromURL(url: string, subsite?: string, offset?: number): Observable; read(url: any, sheetNames: string[], subsite?: string, options?: { header?: any; range?: number; defVal?: any; }[]): Observable<{}>; getAllFoldersFromURL(url: string, subsite: string): Observable; uploadFile(folder: string, fileName: string, objList: any[], subsite?: string): Observable; } interface IBatchCreationData { item: any; result: any; error: any; } export interface ListItem { id: string; link: string; subsite: string; } export interface BaseItem { ID: string; Created: string; Modified: string; Title: string; Author: string; ModifiedBy: string; } export {};