import type { Simplify, UnionToIntersection } from '@skyleague/axioms/types'; import { NodeTrait } from '../../cst/mixin.js'; import type { Node } from '../../cst/node.js'; import type { Intrinsic } from '../../cst/types.js'; import type { SchemaOptions } from '../base.js'; import type { ObjectType } from '../object/object.js'; export type IntersectionOptions = object; export declare class IntersectionType extends NodeTrait { _type: "intersection"; _children: Node[]; _isCommutative: boolean; _options: IntersectionOptions; infer: Simplify>; input: Simplify>; intrinsic: Intrinsic; constructor(intersection: Node[], options: SchemaOptions>); } /** * Create a new `IntersectionType` instance with the given options. * * ### Example * ```ts * $intersection([$object({foo: $integer}), $object({bar: $string}]) * ``` * * @param intersection - The items in the intersection. * @param options - Additional options to pass to the tuple. * * @group Primitives */ export declare function $intersection(intersection: Elements, options?: SchemaOptions>): IntersectionType;