import { CustomTypeReadHookData, CustomTypeReadHookReturnType } from "./hooks/customType-read.js"; import { CustomTypeLibraryReadHookReturnType } from "./hooks/customTypeLibrary-read.js"; import { SliceReadHookData, SliceReadHookReturnType } from "./hooks/slice-read.js"; import { SliceLibraryReadHookData, SliceLibraryReadHookReturnType } from "./hooks/sliceLibrary-read.js"; import { HookSystem } from "./lib/HookSystem.js"; import { PluginHooks, PrismicProject } from "./types.js"; export type ReadAllSliceModelsActionArgs = { withMetadata?: TWithMetadata; }; export type ReadAllSliceModelsActionReturnType = (SliceReadHookReturnType & { libraryID: string; })[]; export type ReadAllSliceModelsForLibraryActionArgs = { libraryID: string; }; /** * Creates Plugin System actions. * * @internal */ export declare const createPluginSystemActions: (project: PrismicProject, hookSystem: HookSystem) => PluginSystemActions; /** * Plugin System actions shared to plugins and hooks. */ export declare class PluginSystemActions { /** * The Prismic project's metadata. * * @internal */ private _project; /** * The actions' hook system used to internally trigger hook calls. * * @internal */ private _hookSystem; constructor(project: PrismicProject, hookSystem: HookSystem); readAllSliceModels: () => Promise; readAllSliceModelsForLibrary: (args: ReadAllSliceModelsForLibraryActionArgs) => Promise; readSliceModel: (args: SliceReadHookData) => Promise; readSliceLibrary: (args: SliceLibraryReadHookData) => Promise; readAllCustomTypeModels: () => Promise; readCustomTypeModel: (args: CustomTypeReadHookData) => Promise; readCustomTypeLibrary: () => Promise; }