import type { Face, Metadata } from 's2-tilejson'; export * from './pmtiles'; /** The defacto interface for all writers. */ export interface Writer { write(data: Uint8Array, offset: number): Promise; append(data: Uint8Array): Promise; appendSync(data: Uint8Array): void; appendString(string: string): Promise; appendStringSync(string: string): void; } /** A base interface for all tile stores. */ export interface TileWriter { writeTileWM(zoom: number, x: number, y: number, data: Uint8Array): Promise; writeTileS2(face: Face, zoom: number, x: number, y: number, data: Uint8Array): Promise; commit(metadata: Metadata): Promise; } /** Buffer writer is used on smaller datasets that are easy to write in memory. Faster then the Filesystem */ export declare class BufferWriter implements Writer { #private; /** * Append data to the buffer * @param data - the data to append */ append(data: Uint8Array): Promise; /** * Append string to the buffer * @param string - the string to append */ appendString(string: string): Promise; /** * 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; /** * 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; /** @returns - the buffer */ commit(): Uint8Array; } //# sourceMappingURL=index.d.ts.map