mp70-pptx-automizer
Version:
A template based pptx generator
16 lines (15 loc) • 948 B
TypeScript
import { XmlElement } from '../types/xml-types';
import { ShapeTargetType } from '../types/types';
import IArchive from '../interfaces/iarchive';
import { ContentTypeExtension } from '../enums/content-type-map';
export declare class MediaHelper {
static copyFiles(sourceArchive: IArchive, targetArchive: IArchive, sourceFile: string, targetFile: string): Promise<void>;
static appendTypes(targetArchive: IArchive, targetFile: string, mediaType: string): Promise<void>;
static appendToSlideRels(targetArchive: IArchive, targetType: ShapeTargetType, targetSlideNumber: number, targetFile: string, relationshipType: string): Promise<{
createdRid: string;
createdRelation: XmlElement;
}>;
static getFileExtension(sourceFile: string): ContentTypeExtension;
static generateTargetFile(targetNumber: number, sourceFile: string): string;
static getElementsByRid(element: XmlElement, rid: string): XmlElement[];
}