/**
 * X API plugin for OpenWriter.
 * Registers routes for checking X connection status and posting tweets.
 * Uses @xdevplatform/xdk with OAuth1 credentials from plugin config.
 */
import type { Express } from 'express';
interface PluginConfigField {
    type: 'string' | 'number' | 'boolean';
    required?: boolean;
    env?: string;
    description?: string;
}
interface PluginRouteContext {
    app: Express;
    config: Record<string, string>;
    dataDir: string;
}
interface OpenWriterPlugin {
    name: string;
    version: string;
    description?: string;
    category?: 'writing' | 'social-media' | 'image-generation';
    configSchema?: Record<string, PluginConfigField>;
    registerRoutes?(ctx: PluginRouteContext): void | Promise<void>;
}
declare const plugin: OpenWriterPlugin;
export default plugin;
