import React from 'react'; import { IJaenPage, IJaenTemplate } from '../../../types'; import { ContentValues } from '../tabs/Pages/PageContent'; import { CreateValues } from '../tabs/Pages/PageCreator'; import { Items } from '../tabs/Pages/PageTree'; export type PageManagerContextType = { onCreate: (parentId: string | null, values: CreateValues) => { payload: Partial & { id?: string | undefined; fromId?: string | undefined; }; type: string; }; onDelete: (id: string) => void; onMove: (id: string, oldParentId: string | null, newParentId: string | null) => void; onUpdate: (id: string, values: ContentValues) => void; onGet: (id: string) => IJaenPage | null; onNavigate: (id: string) => void; tree: Items; templates: IJaenTemplate[]; isTemplatesLoading: boolean; rootPageId: string; onToggleCreator: (parentId: string | null) => void; }; export declare const PageManagerContext: React.Context; export declare const usePageManager: () => PageManagerContextType; export declare const PageManagerProvider: React.FC>; export declare function pageUpdateValidation({ name, value, parentId, treeItems }: { name: string; value: string; parentId: string | null | undefined; treeItems: Items; }): "Slug is already taken" | undefined;