import { CallHookReturnType, CustomTypeCreateHook, CustomTypeCreateHookData, CustomTypeReadHookData, CustomTypeRenameHook, CustomTypeRenameHookData, CustomTypeUpdateHookData, HookError } from "@prismicio/plugin-kit"; import TypesInternal from "@prismicio/types-internal/lib/customtypes/index.js"; import { DecodeError } from "../../lib/DecodeError.js"; import { OnlyHookErrors } from "../../types.js"; import { BaseManager } from "../BaseManager.js"; import { type CustomTypeFormat } from "./types.js"; type PrismicManagerReadCustomTypeLibraryReturnType = { ids: string[]; errors: (DecodeError | HookError)[]; }; type CustomTypesManagerReadAllCustomTypesArgs = { format: CustomTypeFormat; }; type PrismicManagerReadAllCustomTypeReturnType = { models: { model: TypesInternal.CustomType; }[]; errors: (DecodeError | HookError)[]; }; type PrismicManagerReadCustomTypeReturnType = { model: TypesInternal.CustomType | undefined; errors: (DecodeError | HookError)[]; }; type PrismicManagerUpdateCustomTypeArgs = CustomTypeUpdateHookData; type CustomTypesManagerDeleteCustomTypeArgs = { id: string; }; type CustomTypesManagerDeleteCustomTypeReturnType = { errors: (DecodeError | HookError)[]; }; type CustomTypesManagerUpdateCustomTypeReturnType = { errors: (DecodeError | HookError)[]; }; export declare class CustomTypesManager extends BaseManager { readCustomTypeLibrary(): Promise; readAllCustomTypes(args?: CustomTypesManagerReadAllCustomTypesArgs): Promise; createCustomType(args: CustomTypeCreateHookData): Promise>>; readCustomType(args: CustomTypeReadHookData): Promise; updateCustomType(args: PrismicManagerUpdateCustomTypeArgs): Promise; renameCustomType(args: CustomTypeRenameHookData): Promise>>; deleteCustomType(args: CustomTypesManagerDeleteCustomTypeArgs): Promise; fetchRemoteCustomTypes(): Promise; } export {};