import type { WebhookHandlerSummary } from "../api/client.js"; import { type WebhookTaskOptions } from "./shared.js"; export type WebhookEventCategory = "item" | "publish" | "workflow"; export interface WebhookListOptions extends WebhookTaskOptions { /** * Override the content-tree root to scan. Defaults to * `/sitecore/system/Webhooks` (where item + publish event handlers * live). Workflow webhook actions live under workflow states and * require a per-state root override. */ root?: string; /** Filter to handlers whose template name matches the category. */ eventType?: WebhookEventCategory; /** Return only enabled handlers. */ enabledOnly?: boolean; } export interface WebhookListResult { rootPath: string; handlers: WebhookHandlerSummary[]; } /** * List webhook handler items under the configured tree. Categories * `item` and `publish` filter the same template (the catalog * distinguishes them by the `Events` field, not the handler template). * Category `workflow` filters to Submit Actions; pair with a `--root` * pointing at a workflow state to find workflow webhooks attached to * a specific transition. */ export declare const runWebhookList: (options: WebhookListOptions) => Promise;