import { ComputedRef } from 'vue'; import { ComponentNode, SectionListProps } from '../types/canvas'; import { CanvasRetrieve } from '../../../../types/openapi'; type AnimationDirection = 'Left' | 'Right'; declare function broadcastCanvasOpenedEvent(): Promise; declare function broadcastCanvasClosedEvent(canvasId?: string): Promise; declare function goToNextPage(): void; declare function goToPreviousPage(): void; declare function goToFirstPage(componentId?: ComponentNode['id'], skipSetPreviousLocation?: boolean): void; declare function reset(): void; export default function useCanvasPages(): { activeSection: ComputedRef<{ readonly id: string; name: string; content: Record; theme?: (Record | null) | undefined; metadata?: Record | undefined; is_draft: boolean; } | null>; activeSectionId: ComputedRef; activeSectionTheme: ComputedRef | null>; canvasPages: ComputedRef[][]>; currentPageIndex: import('vue').Ref; currentSectionList: ComputedRef<{ sectionListId: string; sectionListIndex: number; } | { sectionListId: null; sectionListIndex: number; }>; sectionListIndexMap: import('vue').Ref, Record>; presentationProgress: ComputedRef; isFirstPage: ComputedRef; isLastPage: ComputedRef; goToNextPage: typeof goToNextPage; goToPreviousPage: typeof goToPreviousPage; goToPage: ({ componentId, sectionId, scrollTo, itemIndex, sectionIndex, skipSetPreviousLocation, }: { componentId: ComponentNode["id"]; sectionId?: CanvasRetrieve["id"]; scrollTo?: "component" | "top"; itemIndex?: number; sectionIndex?: number; skipSetPreviousLocation?: boolean; }) => void; goToFirstPage: typeof goToFirstPage; reset: typeof reset; keepActivePageValid: () => void; animationDirection: import('vue').Ref<"" | AnimationDirection, "" | AnimationDirection>; broadcastCanvasOpenedEvent: typeof broadcastCanvasOpenedEvent; broadcastCanvasClosedEvent: typeof broadcastCanvasClosedEvent; backToPreviousLocation: () => void; isBackToPreviousLocationVisible: ComputedRef; isBackToPreviousLocationDisabled: ComputedRef; }; export {};