import { type PageDisposer } from './react-mount.js'; interface Connector { id: string; name: string; enabled: boolean; verify?: { type: 'token' | 'hmac-sha256'; }; target: { mode: 'dynamic' | 'fixed' | 'new-group'; kind: 'turn' | 'workflow'; botId: string; chatId?: string; allowChats?: string[]; workflowId?: string; }; promptEnvelope: { sourceName: string; instruction?: string; }; topicMessage?: { mode: 'default' | 'custom' | 'template' | 'none'; text?: string; extractors?: Record; }; suppressFinalOutput?: boolean; loggingPolicy?: { storePayload: boolean; storeHeaders: boolean; retentionDays: number; }; lifecycleExtractors?: { dedupKey: string; } | null; } interface ConnectorTopicMessageExtractor { path: string; kind: 'text' | 'mention'; identityPath?: string; namePath?: string; } interface CreateForm { name: string; botId: string; kind: 'turn' | 'workflow'; workflowId: string; mode: 'dynamic' | 'fixed' | 'new-group'; chatId: string; manualChat: boolean; manualChatId: string; allowChats: string[]; deduplicate: boolean; dedup: string; instruction: string; topicMessageMode: 'default' | 'custom' | 'template' | 'none'; topicMessageText: string; topicMessageExtractors: string; suppressFinalOutput: boolean; verify: 'token' | 'hmac-sha256'; secret: string; storePayload: boolean; } export declare function replaceConnectorById(connectors: T[], updated: T): T[]; export declare function buildConnectorInstructionUpdateBody(connector: { name: string; promptEnvelope?: { sourceName?: string; }; }, instruction: string): { promptEnvelope: { sourceName: string; instruction: string; }; }; export declare function buildConnectorTopicMessageConfig(mode: CreateForm['topicMessageMode'], rawText: string, rawExtractors: string): { ok: true; value: NonNullable; } | { ok: false; error: 'connectors.errTopicExtractors'; }; export declare function buildConnectorKindOptions(tr: (key: string) => string): Array<{ value: 'turn' | 'workflow'; label: string; disabled?: boolean; }>; export declare function renderConnectorsPage(root: HTMLElement): PageDisposer; export declare function renderConnectorsLogsPage(root: HTMLElement): PageDisposer; export {}; //# sourceMappingURL=connectors-page.d.ts.map