import { _GraphQueryableInstance, IGraphQueryableInstance, IGraphQueryableCollection, _GraphQueryableCollection } from "../graphqueryable.js"; import { Drive as IDriveType } from "@microsoft/microsoft-graph-types"; import { IGetById, IDeleteable, IUpdateable } from "../decorators.js"; /** * Describes a Drive instance * */ export declare class _Drive extends _GraphQueryableInstance { get root(): IRoot; get list(): IGraphQueryableInstance; get recent(): IDriveItems; get sharedWithMe(): IDriveItems; getItemById(id: string): IDriveItem; } export interface IDrive extends _Drive { } export declare const Drive: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable, path?: string) => IDrive & import("@pnp/odata-commonjs").IInvokable; /** * Describes a collection of Drive objects * */ export declare class _Drives extends _GraphQueryableCollection { getById(id: string): IDrive; } export interface IDrives extends _Drives, IGetById { } export declare const Drives: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable, path?: string) => IDrives & import("@pnp/odata-commonjs").IInvokable; /** * Describes a Root instance * */ export declare class _Root extends _GraphQueryableInstance { get children(): IDriveItems; search(query: string): Promise; get thumbnails(): IGraphQueryableCollection; } export interface IRoot extends _Root { } export declare const Root: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable, path?: string) => IRoot & import("@pnp/odata-commonjs").IInvokable; /** * Describes a Drive Item instance * */ export declare class _DriveItem extends _GraphQueryableInstance { get children(): IDriveItems; get thumbnails(): IGraphQueryableCollection; get versions(): IGraphQueryableCollection; move(parentReference: { id: "string"; }, name: string): Promise; getContent(): Promise; setContent(content: any): Promise<{ id: string; name: string; size: number; }>; } export interface IDriveItem extends _DriveItem, IDeleteable, IUpdateable { } export declare const DriveItem: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable, path?: string) => IDriveItem & import("@pnp/odata-commonjs").IInvokable; /** * Describes a collection of Drive Item objects * */ export declare class _DriveItems extends _GraphQueryableCollection { add(filename: string, content: string): Promise; /** * Adds a folder to this collection of drive items * * @param name Name of the new folder * @returns result with folder data and chainable drive item object */ addFolder(name: string): Promise; } export interface IDriveItems extends _DriveItems, IGetById { } export declare const DriveItems: (baseUrl: string | import("../graphqueryable.js").IGraphQueryable, path?: string) => IDriveItems & import("@pnp/odata-commonjs").IInvokable; /** * IDriveItemAddResult */ export interface IDriveItemAddResult { data: any; driveItem: IDriveItem; } export interface IDriveItemVersionInfo { id: string; lastModifiedBy: { user: { id: string; displayName: string; }; }; lastModifiedDateTime: string; size: number; } //# sourceMappingURL=types.d.ts.map