/**
 * Image Generation plugin for OpenWriter.
 * Right-click an empty paragraph → "Generate image" → AI creates an image inline.
 * Uses Google Gemini (Nano Banana 2) for generation, saves to /_images/.
 */
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 PluginContextMenuItem {
    label: string;
    shortcut?: string;
    action: string;
    condition?: 'has-selection' | 'empty-node' | 'always';
    promptForInput?: boolean;
}
interface OpenWriterPlugin {
    name: string;
    version: string;
    description?: string;
    category?: 'writing' | 'social-media' | 'image-generation';
    configSchema?: Record<string, PluginConfigField>;
    registerRoutes?(ctx: PluginRouteContext): void | Promise<void>;
    contextMenuItems?(): PluginContextMenuItem[];
}
declare const plugin: OpenWriterPlugin;
export default plugin;
