import { Data } from '../data.js'; import { Vector } from '../vector.js'; import { Visitor } from '../visitor.js'; import { Schema, Field } from '../schema.js'; import { DataType, TypeMap, Dictionary, Bool, Null, Utf8, LargeUtf8, Binary, LargeBinary, Decimal, FixedSizeBinary, List, FixedSizeList, Map_, Struct, Float, Float16, Float32, Float64, Int, Uint8, Uint16, Uint32, Uint64, Int8, Int16, Int32, Int64, Date_, DateDay, DateMillisecond, Interval, IntervalDayTime, IntervalYearMonth, Time, TimeSecond, TimeMillisecond, TimeMicrosecond, TimeNanosecond, Timestamp, TimestampSecond, TimestampMillisecond, TimestampMicrosecond, TimestampNanosecond, Duration, DurationSecond, DurationMillisecond, DurationMicrosecond, DurationNanosecond, Union, DenseUnion, SparseUnion, IntervalMonthDayNano } from '../type.js'; /** @ignore */ export interface TypeComparator extends Visitor { visit(type: T, other?: DataType | null): other is T; visitMany(nodes: T[], others?: DataType[] | null): boolean[]; getVisitFn(node: Vector | Data | T): (other?: DataType | null) => other is T; visitNull(type: T, other?: DataType | null): other is T; visitBool(type: T, other?: DataType | null): other is T; visitInt(type: T, other?: DataType | null): other is T; visitInt8(type: T, other?: DataType | null): other is T; visitInt16(type: T, other?: DataType | null): other is T; visitInt32(type: T, other?: DataType | null): other is T; visitInt64(type: T, other?: DataType | null): other is T; visitUint8(type: T, other?: DataType | null): other is T; visitUint16(type: T, other?: DataType | null): other is T; visitUint32(type: T, other?: DataType | null): other is T; visitUint64(type: T, other?: DataType | null): other is T; visitFloat(type: T, other?: DataType | null): other is T; visitFloat16(type: T, other?: DataType | null): other is T; visitFloat32(type: T, other?: DataType | null): other is T; visitFloat64(type: T, other?: DataType | null): other is T; visitUtf8(type: T, other?: DataType | null): other is T; visitLargeUtf8(type: T, other?: DataType | null): other is T; visitBinary(type: T, other?: DataType | null): other is T; visitLargeBinary(type: T, other?: DataType | null): other is T; visitFixedSizeBinary(type: T, other?: DataType | null): other is T; visitDate(type: T, other?: DataType | null): other is T; visitDateDay(type: T, other?: DataType | null): other is T; visitDateMillisecond(type: T, other?: DataType | null): other is T; visitTimestamp(type: T, other?: DataType | null): other is T; visitTimestampSecond(type: T, other?: DataType | null): other is T; visitTimestampMillisecond(type: T, other?: DataType | null): other is T; visitTimestampMicrosecond(type: T, other?: DataType | null): other is T; visitTimestampNanosecond(type: T, other?: DataType | null): other is T; visitTime(type: T, other?: DataType | null): other is T; visitTimeSecond(type: T, other?: DataType | null): other is T; visitTimeMillisecond(type: T, other?: DataType | null): other is T; visitTimeMicrosecond(type: T, other?: DataType | null): other is T; visitTimeNanosecond(type: T, other?: DataType | null): other is T; visitDecimal(type: T, other?: DataType | null): other is T; visitList(type: T, other?: DataType | null): other is T; visitStruct(type: T, other?: DataType | null): other is T; visitUnion(type: T, other?: DataType | null): other is T; visitDenseUnion(type: T, other?: DataType | null): other is T; visitSparseUnion(type: T, other?: DataType | null): other is T; visitDictionary(type: T, other?: DataType | null): other is T; visitInterval(type: T, other?: DataType | null): other is T; visitIntervalDayTime(type: T, other?: DataType | null): other is T; visitIntervalYearMonth(type: T, other?: DataType | null): other is T; visitIntervalMonthDayNano(type: T, other?: DataType | null): other is T; visitDuration(type: T, other?: DataType | null): other is T; visitDurationSecond(type: T, other?: DataType | null): other is T; visitDurationMillisecond(type: T, other?: DataType | null): other is T; visitDurationMicrosecond(type: T, other?: DataType | null): other is T; visitDurationNanosecond(type: T, other?: DataType | null): other is T; visitFixedSizeList(type: T, other?: DataType | null): other is T; visitMap(type: T, other?: DataType | null): other is T; } /** @ignore */ export declare class TypeComparator extends Visitor { compareSchemas(schema: Schema, other?: Schema | null): other is Schema; compareManyFields(fields: Field[], others?: Field[] | null): others is Field[]; compareFields(field: Field, other?: Field | null): other is Field; } /** @ignore */ export declare const instance: TypeComparator; export declare function compareSchemas(schema: Schema, other?: Schema | null): other is Schema; export declare function compareFields(field: Field, other?: Field | null): other is Field; export declare function compareTypes(type: A, other?: DataType): other is A;