import { Notebook as INotebookType, Onenote as IOnenoteType, OnenoteSection as IOnenoteSectionType, OnenotePage as IOnenotePageType, SectionGroup as ISectionGroupType, RecentNotebook as IRecentNotebookType, Operation as IOperationType, OnenotePatchContentCommand as IOnenotePatchContentCommand } from "@microsoft/microsoft-graph-types"; import { _GraphInstance, _GraphCollection, _GraphQueryable } from "../graphqueryable.js"; import { IDeleteable, IGetById } from "../decorators.js"; type Combine = T & U; /** * Represents a onenote entity */ export declare class _OneNote extends _GraphInstance { get notebooks(): INotebooks; get pages(): IOnenotePages; get resources(): IResources; get sections(): Combine<_GraphCollection, Omit>; get sectionGroups(): Combine<_GraphCollection, Omit>; } export interface IOneNote extends _OneNote { } export declare const OneNote: import("../graphqueryable.js").IGraphInvokableFactory; /** * Describes a notebook instance * */ export declare class _Notebook extends _GraphInstance { get sections(): Combine<_GraphCollection, Pick>; get sectionGroups(): Combine<_GraphCollection, Pick>; /** * Copy notebook * @param props of type ICopyProps. groupId (id of group to copy to. Use only when copying to M365 group), renameAs name of the copy. */ copy(props: Pick): Promise; } export interface INotebook extends _Notebook { } export declare const Notebook: import("../graphqueryable.js").IGraphInvokableFactory; /** * Describes a collection of Notebook objects * */ export declare class _Notebooks extends _GraphCollection { /** * Create a new notebook as specified in the request body. * * @param displayName Notebook display name */ add(displayName: string): Promise; /** * Get a list of recent notebooks for the sign-in user * @param includePersonalNotebooks Include notebooks owned by the user. Set to true to include notebooks owned by the user; otherwise, set to false. */ recent(includePersonalNotebooks?: boolean): Promise; } export interface INotebooks extends _Notebooks, IGetById { } export declare const Notebooks: import("../graphqueryable.js").IGraphInvokableFactory; /** * Describes a OneNote sections instance */ export declare class _Section extends _GraphInstance { get pages(): IOnenotePages; /** * Copy section to notebook * @param props of type ICopyProps. groupId (id of group to copy to. Use only when copying to M365 group), id of destination notebook, renameAs name of the copy. */ copyToNotebook(props: ICopyProps): Promise; /** * Copy section group * @param props of type ICopyProps. groupId (id of group to copy to. Use only when copying to M365 group), id of destination notebook, renameAs name of the copy. */ copyToSectionGroup(props: ICopyProps): Promise; } export interface ISection extends _Section { } export declare const Section: import("../graphqueryable.js").IGraphInvokableFactory; /** * Describes a collection of onenote sections objects * */ export declare class _Sections extends _GraphCollection { /** * Adds a new section * * @param displayName New section display name */ add(displayName: string): Promise; } export interface ISections extends _Sections, IGetById { } export declare const Sections: import("../graphqueryable.js").IGraphInvokableFactory; /** * Describes a root onenote sections group instance */ export declare class _SectionGroup extends _GraphInstance { get sections(): ISections; } export interface ISectionGroup extends _SectionGroup { } export declare const SectionGroup: import("../graphqueryable.js").IGraphInvokableFactory; /** * Describes a collection of Sections objects * */ export declare class _SectionGroups extends _GraphCollection { /** * Adds a new section group * @param displayName New section group display name */ add(displayName: string): Promise; get sections(): ISections; } export interface ISectionGroups extends _SectionGroups, IGetById { } export declare const SectionGroups: import("../graphqueryable.js").IGraphInvokableFactory; /** * Describes a page instance * */ export declare class _OnenotePage extends _GraphInstance { /** * Copy page to section * @param props of type ICopyPageProps. groupId (id of group to copy to. Use only when copying to M365 group), id of destination notebook */ copyToSection(props: Pick): Promise; /** * Gets contents of a page * * @param includeIDs page html body */ content(includeIDs?: boolean): Promise; /** * Copy page to section * @param props of type IOnenotePatchContentCommand. */ update(props: IOnenotePatchContentCommand[]): Promise; } export interface IOnenotePage extends _OnenotePage, IDeleteable { } export declare const OnenotePage: import("../graphqueryable.js").IGraphInvokableFactory; /** * Describes a collection of page objects * */ export declare class _OnenotePages extends _GraphCollection { /** * Create a new page as specified in the request body. * * @param html page html body */ add(html: string): Promise; } export interface IOnenotePages extends _OnenotePages, IGetById { } export declare const OnenotePages: import("../graphqueryable.js").IGraphInvokableFactory; /** * Describes a resources * */ export declare class _Resources extends _GraphInstance { /** * getById returns a Blob. API does not support getting JSON representation. * @param id id of the resource in a OneNote page * @returns Blob of the resource from a OneNote page */ getById(id: string): _GraphQueryable; } export interface IResources extends _Resources { } export declare const Resources: import("../graphqueryable.js").IGraphInvokableFactory; export interface ICopyProps { groupId?: string; renameAs?: string; id: string; } export {}; //# sourceMappingURL=types.d.ts.map