import { AnyType, NeverType, NumberPrimitive, StringPrimitive, StructValueType, Type, UnionType, ValueType } from './types'; declare type BaseValueTypes = T extends NumberPrimitive ? NumberPrimitive : T extends StringPrimitive ? StringPrimitive : T extends StructValueType ? StructValueType : never; declare type BaseTypes = T extends ValueType ? BaseValueTypes : T extends UnionType ? BaseValueTypes : never; declare type Closed = T | UnionType; declare type Intersection2 = NeverType | (A extends AnyType ? (B extends AnyType ? AnyType : never) : never) | Closed & BaseTypes>; export declare function intersect(): AnyType; export declare function intersect(a: A): A; export declare function intersect(a: A, b: B): Intersection2; export declare function intersect(...types: T[]): AnyType | NeverType | Closed>; export declare const isDisjointWith: (a: Type, b: Type) => boolean; export {};