import { type Unwrap, type IsEqual } from "../../../common"; import { type PatternValueMaybeAll } from "../pattern"; export type ComplexMatchedMaybeAll = Extract extends infer InferredPatternValue ? IsEqual extends true ? never : Extract, GenericInput> : never;