import type { FormSchema } from "../form/webcomponent.type";

export type Component = {
  id?: string;
  style?: string;
  /** From HTML: `yes` / `no` / `true` / `""` are coerced in `$effect`. */
  debug?: boolean | string;
  /** From HTML: JSON string parsed in `$effect` into `FormSchema`. */
  output_schema?: string | FormSchema;
};

export type Events = {
  done: { schema: FormSchema; id: string };
};
