import type { WebhookEndpointConfig } from "./config.js"; import { type WebhookInvocationMode } from "./server.js"; /** * Load every `*.md` webhook endpoint in {@link dir}. A missing directory is not * an error (returns `[]`); files are read in sorted filename order for a stable * endpoint list. Two files that resolve to the same `name` are a hard error. */ export declare function loadWebhookEndpointsFromDirectory(dir: string, defaultMode: WebhookInvocationMode): Promise; /** * Parse one webhook endpoint markdown file: frontmatter holds the routing * metadata and the markdown body is the `prompt` (pre-instructions). `name` * defaults to the filename stem, `mode` to the shared default, and `enabled` to * true. Unlike cron jobs, the body may be empty — an endpoint with no prompt * just forwards the posted text unchanged. */ export declare function parseWebhookEndpointMarkdown(fileName: string, content: string, defaultMode: WebhookInvocationMode): WebhookEndpointConfig; //# sourceMappingURL=endpoints-dir.d.ts.map