export interface ClineAPI { /** * Sets the custom instructions in the global storage. * @param value The custom instructions to be saved. */ setCustomInstructions(value: string): Promise /** * Retrieves the custom instructions from the global storage. * @returns The saved custom instructions, or undefined if not set. */ getCustomInstructions(): Promise /** * Starts a new task with an optional initial message and images. * @param task Optional initial task message. * @param images Optional array of image data URIs (e.g., "data:image/webp;base64,..."). */ startNewTask(task?: string, images?: string[]): Promise /** * Sends a message to the current task. * @param message Optional message to send. * @param images Optional array of image data URIs (e.g., "data:image/webp;base64,..."). */ sendMessage(message?: string, images?: string[]): Promise /** * Simulates pressing the primary button in the chat interface. */ pressPrimaryButton(): Promise /** * Simulates pressing the secondary button in the chat interface. */ pressSecondaryButton(): Promise }