import { SharePointQueryable, SharePointQueryableInstance } from "./sharepointqueryable"; import { Web } from "./webs"; import { UserCustomActions } from "./usercustomactions"; import { ContextInfo, DocumentLibraryInformation } from "./types"; import { ODataBatch } from "./batch"; import { Features } from "./features"; /** * Describes a site collection * */ export declare class Site extends SharePointQueryableInstance { /** * Creates a new instance of the Site class * * @param baseUrl The url or SharePointQueryable which forms the parent of this site collection */ constructor(baseUrl: string | SharePointQueryable, path?: string); /** * Gets the root web of the site collection * */ readonly rootWeb: Web; /** * Gets the active features for this site collection * */ readonly features: Features; /** * Gets all custom actions for this site collection * */ readonly userCustomActions: UserCustomActions; /** * Gets a Web instance representing the root web of the site collection * correctly setup for chaining within the library */ getRootWeb(): Promise; /** * Gets the context information for this site collection */ getContextInfo(): Promise; /** * Gets the document libraries on a site. Static method. (SharePoint Online only) * * @param absoluteWebUrl The absolute url of the web whose document libraries should be returned */ getDocumentLibraries(absoluteWebUrl: string): Promise; /** * Gets the site url from a page url * * @param absolutePageUrl The absolute url of the page */ getWebUrlFromPageUrl(absolutePageUrl: string): Promise; /** * Creates a new batch for requests within the context of this site collection * */ createBatch(): ODataBatch; /** * Opens a web by id (using POST) * * @param webId The GUID id of the web to open */ openWebById(webId: string): Promise; } /** * The result of opening a web by id: contains the data returned as well as a chainable web instance */ export interface OpenWebByIdResult { data: any; web: Web; }