import type { WebhookConfig, WebhookEventType } from "./types.ts"; /** * Webhook management for TikTok Business API. * Webhooks deliver events for VIDEO (publish lifecycle) and COMMENT activity. */ export declare function createWebhooks(config: WebhookConfig): { /** Get current webhook configuration for an event type. */ get(eventType: WebhookEventType): Promise<{ appId: string; eventType: string; callbackUrl?: string; itemList?: string[]; }>; /** Register or update a webhook callback URL for an event type. */ update(eventType: WebhookEventType, callbackUrl: string, itemList?: string[]): Promise; /** Delete a webhook for an event type. */ delete(eventType: WebhookEventType): Promise; /** Convenience: set up both VIDEO and COMMENT webhooks. */ setupAll(callbackUrl: string): Promise; /** Convenience: tear down both VIDEO and COMMENT webhooks. */ teardownAll(): Promise; }; //# sourceMappingURL=webhooks.d.ts.map