import TypesInternal from "@prismicio/types-internal/lib/customtypes/index.js"; import type { ExtendPluginSystemHook, PluginOptions, PluginHook } from "../types.js"; /** * Data provided to `custom-type:delete` hook handlers. */ export type CustomTypeDeleteHookData = { model: TypesInternal.CustomType; }; /** * Return value for `custom-type:delete` hook handlers. */ export type CustomTypeDeleteHookReturnType = void; /** * Base version of a `custom-type:delete` hook handler without plugin runner * context. * * @internal */ export type CustomTypeDeleteHookBase = PluginHook; /** * Handler for the `custom-type:delete` hook. The hook is called when a Custom * Type is deleted. * * @typeParam TPluginOptions - User-provided options for the hook's plugin. */ export type CustomTypeDeleteHook = ExtendPluginSystemHook;