/** * ChatworkConnector — polls Chatwork rooms via native fetch. * No SDK dependency; uses X-ChatWorkToken header for auth. */ import type { AuthRequirement, ConnectorConfig, ConnectorHealth, IConnector, NormalizedItem } from '../framework/types.js'; export declare class ChatworkConnector implements IConnector { readonly name = "chatwork"; readonly type: "api"; private config; private token; private readonly baseUrl; private lastPollTime; private lastPollCount; private lastError; /** * Per-room last seen message ID for incremental polling. * NOTE: The Chatwork API has no cursor-based pagination. The `force=0` mode * returns messages since the server-tracked read cursor (up to 100 per call). * We additionally track the last seen message_id client-side so we can skip * already-processed messages on the first poll after restart. * Limitation: if a room receives >100 messages between polls, the oldest * messages in that batch will be missed — this is a Chatwork API constraint. */ private lastMessageIds; constructor(config: ConnectorConfig); init(): Promise; dispose(): Promise; healthCheck(): Promise; getAuthRequirements(): AuthRequirement[]; authenticate(): Promise; poll(since: Date): Promise; } //# sourceMappingURL=index.d.ts.map