UNPKG

askme-cli

Version:

askme-cli MCP server that collects user's next plan or confirmation through terminal window

33 lines 1.1 kB
import { ImageAttachment } from "../types/index.js"; /** * Detect image MIME type */ export declare function detectImageMimeType(buffer: Buffer): string; /** * Convert image Buffer to Base64 data URL */ export declare function bufferToBase64DataUrl(buffer: Buffer, mimeType: string): string; /** * Generate next image ID */ export declare function generateImageId(existingImages: ImageAttachment[]): string; /** * Create image attachment object */ export declare function createImageAttachment(buffer: Buffer, existingImages: ImageAttachment[]): ImageAttachment; /** * Insert image placeholder in text (auto add space for easy input) */ export declare function insertImagePlaceholder(text: string, cursorPosition: number, placeholder: string): { newText: string; newCursorPosition: number; }; /** * Parse image placeholders from text */ export declare function parseImagePlaceholders(text: string): string[]; /** * Extract pure Base64 data from Base64 data URL */ export declare function extractBase64FromDataUrl(dataUrl: string): string; //# sourceMappingURL=image.d.ts.map