import { Ref } from 'vue'; import { CollectionPlayerWithPages, CollectionGroupWithPages } from '../types/model.type'; import { CollectionPage } from '../../collection-player/types/collection-player.type'; import { Api } from '../stores/app.store'; import { CanvasRetrieve } from '../../../../types/openapi'; type UseCanvasPayload = { t: (key: string, values?: Record) => string; api: Api; collection: Ref; tags?: string[]; }; export declare const useCanvas: ({ t, api, collection, tags }: UseCanvasPayload) => { createSection: (item: CollectionPage, details: { title: string; id: number; sequence: number; }, group: CollectionGroupWithPages, image?: { width?: number; height?: number; url: string; }) => Promise; saveTemplate: (savedSlides: CanvasRetrieve[], slidesById: Record) => Promise; fetchCanvases: (ids: string[]) => Promise>; updateSection: (canvasId: string, item: CollectionPage, details: { title: string; id: number; sequence: number; }, group: CollectionGroupWithPages, image?: { width?: number; height?: number; url: string; }) => Promise; deleteCanvas: (id: string) => Promise; }; export {};