UNPKG

gis-tools-ts

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

45 lines 1.48 kB
import type { Writer } from './index.js'; /** The File writer is to be used by bun/node/deno on the local filesystem. */ export declare class FileWriter implements Writer { #private; readonly file: string; /** @param file - the location of the PMTiles data in the FS */ constructor(file: string); /** * Write data to the buffer * @param data - the data to write * @param offset - where in the buffer to start */ write(data: Uint8Array, offset: number): Promise<void>; /** * Append data to the buffer * @param data - the data to append * @returns - a promise that resolves when the data is appended */ append(data: Uint8Array): Promise<void>; /** * Append string to the buffer synchronously * @param string - the string to append */ appendString(string: string): Promise<void>; /** * Append data to the buffer synchronously * @param data - the data to append */ appendSync(data: Uint8Array): void; /** * Append string to the buffer synchronously * @param string - the string to append */ appendStringSync(string: string): void; /** * Slice the buffer * @param start - the start of the slice * @param end - the end of the slice * @returns - the sliced buffer */ slice(start: number, end: number): Promise<Uint8Array>; /** Close the file */ close(): Promise<void>; } //# sourceMappingURL=file.d.ts.map