import type { WebhookTopic } from '../types/index.js'; type RegisteredTopic = Partial & { name: string; }; /** * Clean up what modules registered: a missing label falls back to the code, a * missing group to "Other", and a later registration of the same name replaces * the earlier one (so an extension can re-word a core topic) while keeping its * original position. */ export declare function normalizeTopics(topics: RegisteredTopic[]): WebhookTopic[]; /** * The topics an admin may choose. Modules add theirs with * `addProcessor('webhookTopics', (topics) => [...topics, {...}])` from * `bootstrap.ts`. A stable list, so the registry's per-key cache is safe. */ export declare function getWebhookTopics(): Promise; /** Look up a topic's metadata by code, or undefined if it is not registered. */ export declare function findWebhookTopic(name: string): Promise; /** * Validate the topics an admin submitted: a non-empty array of registered, * unique topic codes. Returns the cleaned list. */ export declare function assertValidTopics(topics: unknown): Promise; export {};