export const processStyle = (style: any) => style;

export const applyStyle = async (
  prompt: string,
  styleId: string,
  options?: { loraStrength?: number }
): Promise<{ prompt: string; extraParams?: Record<string, any> }> => {
  // Apply style transformation to prompt
  const styledPrompt = `[${styleId}] ${prompt}`;
  const extraParams: Record<string, any> = {};

  if (options?.loraStrength !== undefined) {
    extraParams.lora_strength = options.loraStrength;
  }

  return {
    prompt: styledPrompt,
    extraParams: Object.keys(extraParams).length > 0 ? extraParams : undefined,
  };
};

export const StyleProcessor = {
  process: processStyle,
  applyStyle,
};
