import TypesInternal from "@prismicio/types-internal/lib/customtypes/index.js"; import type { ExtendPluginSystemHook, PluginOptions, PluginHook } from "../types.js"; /** * Data provided to `slice:rename` hook handlers. */ export type SliceRenameHookData = { libraryID: string; model: TypesInternal.SharedSlice; }; /** * Return value for `slice:rename` hook handlers. */ export type SliceRenameHookReturnType = void; /** * Base version of a `slice:rename` hook handler without plugin runner context. * * @internal */ export type SliceRenameHookBase = PluginHook; /** * Handler for the `slice:rename` hook. The hook is called when a Slice is * renamed. * * @typeParam TPluginOptions - User-provided options for the hook's plugin. */ export type SliceRenameHook = ExtendPluginSystemHook;