s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
38 lines • 1.24 kB
TypeScript
import type { Writer } from '.';
/** 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;
/** Close the file */
close(): void;
}
//# sourceMappingURL=file.d.ts.map