Skip to main content
Glama
template.d.ts•2.71 kB
import { ICounter } from '../interfaces/icounter'; import { ISlide } from '../interfaces/islide'; import { PresTemplate } from '../interfaces/pres-template'; import { RootPresTemplate } from '../interfaces/root-pres-template'; import { ITemplate } from '../interfaces/itemplate'; import { ContentMap, SlideInfo } from '../types/xml-types'; import IArchive from '../interfaces/iarchive'; import { ArchiveParams, MediaFile } from '../types/types'; import Automizer from '../automizer'; import { IMaster } from '../interfaces/imaster'; import { ILayout } from '../interfaces/ilayout'; export declare class Template implements ITemplate { /** * Path to local file * @type string */ location: string; /** * An alias name to identify template and simplify * @type string */ name: string; /** * Node file buffer * @type InputType */ file: any; /** * this.file will be passed to FileProxy * @type Archive */ archive: IArchive; /** * Array containing all slides coming from Automizer.addSlide() * @type: ISlide[] */ slides: ISlide[]; /** * Array containing all slideMasters coming from Automizer.addMaster() * @type: IMaster[] */ masters: IMaster[]; /** * Array containing all counters * @type: ICounter[] */ counter: ICounter[]; creationIds: SlideInfo[]; slideNumbers: number[]; existingSlides: number; contentMap: ContentMap[]; mediaFiles: MediaFile[]; constructor(location: string, params: ArchiveParams); static import(location: string, params: ArchiveParams, automizer?: Automizer): PresTemplate | RootPresTemplate; mapContents(type: 'slideMaster' | 'slideLayout', key: string, sourceId: number, targetId: number, name?: string): void; getNamedMappedContent(type: 'slideMaster' | 'slideLayout', name: string): ContentMap; getMappedContent(type: 'slideMaster' | 'slideLayout', key: string, sourceId: number): ContentMap; /** * Returns the slide numbers of a given template as a sorted array of integers. * @returns {Promise<number[]>} - A promise that resolves to a sorted array of slide numbers in the template. */ getAllSlideNumbers(): Promise<number[]>; setCreationIds(): Promise<SlideInfo[]>; appendMasterSlide(slideMaster: IMaster): Promise<void>; appendSlide(slide: ISlide): Promise<void>; appendLayout(slideLayout: ILayout): Promise<void>; countExistingSlides(): Promise<void>; truncate(): Promise<void>; getSlideIdList(): Promise<Document>; initializeCounter(): Promise<void>; incrementCounter(name: string): number; count(name: string): number; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guangxiangdebizi/PPT-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server