import typia from "typia";

import { _test_llm_applicationOfValidate } from "../../../internal/_test_llm_applicationOfValidate";
import { ArrayUnion } from "../../../structures/ArrayUnion";

export const test_llm_applicationOfValidate_3_1_ArrayUnion =
  _test_llm_applicationOfValidate({
    model: "3.1",
    name: "ArrayUnion",
    factory: ArrayUnion,
  })(typia.llm.applicationOfValidate<ArrayUnionApplication, "3.1">());

interface ArrayUnionApplication {
  insert(p: { first: ArrayUnion }): Promise<void>;
  reduce(p: {
    first: ArrayUnion;
    second: ArrayUnion | null;
  }): Promise<ArrayUnion>;
  coalesce(p: {
    first: ArrayUnion | null;
    second: ArrayUnion | null;
    third?: ArrayUnion | null;
  }): Promise<ArrayUnion | null>;
}
