import { Context, FxError, Result, UserError } from "@microsoft/teamsfx-api"; import { AxiosInstance } from "axios"; import { OneDriveSharePointItemType } from "../constant"; export interface ItemMetadata { id: string; name: string; uniqueId?: string; listId?: string; webId?: string; siteId?: string; webUrl?: string; itemType?: OneDriveSharePointItemType; } /** * Create a graph client with token * @param context The context * @returns The graph client */ export declare function createGraphClientWithToken(context: Context): Promise>; /** * Get the SharePoint site by relative path * @param graphClient The graph client * @param url The share point url * @returns The SharePoint site */ export declare function getSharePointSiteByRelativePath(graphClient: AxiosInstance, url: string): Promise>; /** * Encode the share point url * @param itemUrl The share point url * @returns The encoded url */ export declare function encodeSharePointUrl(itemUrl: string): string; /** * Get the drive item info * @param graphClient The graph client * @param encodedUrl The encoded url * @returns The drive item info */ export declare function getDriveItemInfo(graphClient: any, encodedUrl: string): Promise; export declare function getODSPItemDetailById(context: Context, siteId: string, itemId?: string): Promise>; //# sourceMappingURL=oneDriveSharePointHandler.d.ts.map