/**
 * Type definitions for SharedImage plugin
 */

export interface SharedImageResult {
  base64: string;
  fileName: string;
}

export interface SharedImagePlugin {
  /**
   * Get shared image data from native layer
   * Returns base64 string and fileName, or null if no image exists
   * Clears the data after reading to prevent re-reading
   */
  getSharedImage(): Promise<SharedImageResult | null>;

  /**
   * Check if shared image exists without reading it
   * Useful for quick checks before calling getSharedImage()
   */
  hasSharedImage(): Promise<{ hasImage: boolean }>;
}
