/**
 * Google Gemini Node - Version 1.2
 * Discriminator: resource=image, operation=edit
 */


interface Credentials {
  googlePalmApi: CredentialReference;
}

/** Upload one or more images and apply edits based on a prompt */
export type LcGoogleGeminiV12ImageEditParams = {
  resource: 'image';
  operation: 'edit';
/**
 * Model
 * @searchListMethod imageEditModelSearch
 * @default {"mode":"list","value":""}
 */
    modelId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
/**
 * Instruction describing how to edit the image
 */
    prompt?: string | Expression<string>;
/**
 * Add one or more binary fields to include images with your prompt
 * @default {"values":[{"binaryPropertyName":"data"}]}
 */
    images?: {
        /** Image
     */
    values?: Array<{
      /** The name of the binary field containing the image data
       * @default data
       */
      binaryPropertyName?: string | Expression<string>;
    }>;
  };
/**
 * Options
 * @default {}
 */
    options?: {
    /** Put Output in Field
     * @hint The name of the output field to put the binary file data in
     * @default edited
     */
    binaryPropertyOutput?: string | Expression<string>;
  };
};

export interface LcGoogleGeminiV12ImageEditSubnodeConfig {
  tools?: ToolInstance[];
}

export type LcGoogleGeminiV12ImageEditNode = {
  type: '@n8n/n8n-nodes-langchain.googleGemini';
  version: 1.2;
  credentials?: Credentials;
  isTrigger: true;
  config: NodeConfig<LcGoogleGeminiV12ImageEditParams> & { subnodes?: LcGoogleGeminiV12ImageEditSubnodeConfig };
};