import type { TKeys } from "apache-arrow/type"; import { DataType, Date_, Decimal, DenseUnion, Dictionary, Duration, Field, FixedSizeBinary, FixedSizeList, Float, Int, Interval, List, Map_, Schema, SchemaLike, SparseUnion, Struct, Table, TableLike, Time, Timestamp, TimestampMicrosecond, TimestampMillisecond, TimestampNanosecond, TimestampSecond, Type, Union } from "./arrow"; export declare function sanitizeMetadata(metadataLike?: unknown): Map | undefined; export declare function sanitizeInt(typeLike: object): Int; export declare function sanitizeFloat(typeLike: object): Float; export declare function sanitizeDecimal(typeLike: object): Decimal; export declare function sanitizeDate(typeLike: object): Date_; export declare function sanitizeTime(typeLike: object): Time; export declare function sanitizeTimestamp(typeLike: object): Timestamp; export declare function sanitizeTypedTimestamp(typeLike: object, Datatype: typeof TimestampNanosecond | typeof TimestampMicrosecond | typeof TimestampMillisecond | typeof TimestampSecond): TimestampSecond | TimestampMillisecond | TimestampMicrosecond | TimestampNanosecond; export declare function sanitizeInterval(typeLike: object): Interval; export declare function sanitizeList(typeLike: object): List; export declare function sanitizeStruct(typeLike: object): Struct; export declare function sanitizeUnion(typeLike: object): Union; export declare function sanitizeTypedUnion(typeLike: object, UnionType: typeof DenseUnion | typeof SparseUnion): SparseUnion | DenseUnion; export declare function sanitizeFixedSizeBinary(typeLike: object): FixedSizeBinary; export declare function sanitizeFixedSizeList(typeLike: object): FixedSizeList; export declare function sanitizeMap(typeLike: object): Map_; export declare function sanitizeDuration(typeLike: object): Duration; export declare function sanitizeDictionary(typeLike: object): Dictionary, TKeys>; export declare function sanitizeType(typeLike: unknown): DataType; export declare function sanitizeField(fieldLike: unknown): Field; /** * Convert something schemaLike into a Schema instance * * This method is often needed even when the caller is using a Schema * instance because they might be using a different instance of apache-arrow * than lancedb is using. */ export declare function sanitizeSchema(schemaLike: SchemaLike): Schema; export declare function sanitizeTable(tableLike: TableLike): Table; export declare function dataTypeFromName(typeName: string): DataType;