import { PptxSlide } from 'pptx-viewer-core'; import { SlideTemplateBuildOptions, SlideTemplateId } from 'pptx-viewer-shared'; /** Insert a new blank slide immediately after `afterIndex`. Returns its index. */ export declare function insertBlankSlideAfter(slides: readonly PptxSlide[], afterIndex: number): { slides: PptxSlide[]; newIndex: number; }; /** * Insert a pre-designed template slide immediately after `afterIndex`. * The slide content comes from the shared catalogue (`buildSlideTemplateSlide`), * so what the gallery previews is exactly what lands in the deck. Pass the * deck's scheme/canvas size in `options` so the new slide inherits the theme. */ export declare function insertTemplateSlideAfter(slides: readonly PptxSlide[], afterIndex: number, templateId: SlideTemplateId, options?: SlideTemplateBuildOptions): { slides: PptxSlide[]; newIndex: number; }; /** Duplicate the slide at `index` (fresh slide + element ids). Returns the new index. */ export declare function duplicateSlideAt(slides: readonly PptxSlide[], index: number): { slides: PptxSlide[]; newIndex: number; } | null; /** Delete the slide at `index`. Returns the new active index, or `null` when it was the only slide. */ export declare function deleteSlideAt(slides: readonly PptxSlide[], index: number): { slides: PptxSlide[]; newIndex: number; } | null; /** * Move a slide to a new order index and renumber the resulting deck. The * target index is evaluated against the original list, as native drag/drop * targets are: dropping slide 1 onto slide 3 produces [2, 3, 1]. */ export declare function moveSlide(slides: readonly PptxSlide[], fromIndex: number, toIndex: number): PptxSlide[] | null; //# sourceMappingURL=editor-slide-ops.d.ts.map