import { KMsgError, type Result, type Template, type TemplateContext, type TemplateCreateInput, type TemplateUpdateInput } from "@k-msg/core";
import type { AligoRuntimeContext } from "./aligo.internal.types";
export declare function createTemplate(ctx: AligoRuntimeContext, input: TemplateCreateInput, templateCtx?: TemplateContext): Promise<Result<Template, KMsgError>>;
export declare function getTemplate(ctx: AligoRuntimeContext, code: string, templateCtx?: TemplateContext): Promise<Result<Template, KMsgError>>;
export declare function updateTemplate(ctx: AligoRuntimeContext, code: string, patch: TemplateUpdateInput, templateCtx?: TemplateContext): Promise<Result<Template, KMsgError>>;
export declare function deleteTemplate(ctx: AligoRuntimeContext, code: string, templateCtx?: TemplateContext): Promise<Result<void, KMsgError>>;
export declare function listTemplates(ctx: AligoRuntimeContext, params?: {
    status?: string;
    page?: number;
    limit?: number;
}, templateCtx?: TemplateContext): Promise<Result<Template[], KMsgError>>;
export declare function requestTemplateInspection(ctx: AligoRuntimeContext, code: string, templateCtx?: TemplateContext): Promise<Result<void, KMsgError>>;
