import type { DBFRow, FeatureIterator, Writer } from '../../index.js'; export type DBFFileVersion = 0x03 | 0x83 | 0x8b | 0x30 | 0xf5; /** * Sweeps over all feature property collections to assemble a unified DBF column schema definition. * @param iterators - Multiple array of records containing the GeoJSON feature property values * @returns An array of field schema objects tailored to conform with DBF specifications */ export declare function toDBFMeta(iterators: FeatureIterator[]): Promise<[DBFRow[], featureCount: number]>; /** * # DBF Writer * * ## Description * * Given a writer and an array of iterators, write the input features property data into a DBF file * * ## Usage * ```ts * import { toDBF, JSONReader } from 'gis-tools-ts'; * import { FileReader, FileWriter } from 'gis-tools-ts/file'; * // or use mmap reader if using bun * // import { MMapReader } from 'gis-tools-ts/mmap'; * // or use a BufferWriter if you are using a browser * // import { BufferWriter } from 'gis-tools-ts'; * * const fileReader = new FileReader(`${__dirname}/fixtures/points.geojson`); * const jsonReader = new JSONReader(fileReader); * const bufWriter = new FileWriter(`${__dirname}/fixtures/points.dbf`); * * // store to singular output * await toDBF(bufWriter, [jsonReader]); * ``` * @param writer - the writer to append strings to * @param iterators - the collection of iterators to write */ export declare function toDBF(writer: Writer, iterators: FeatureIterator[]): Promise; //# sourceMappingURL=dbf.d.ts.map