import type { TileID } from '../../index.js'; export interface TileGridGuide { /** Final grid position to start at */ destOffsets: [x: number, y: number]; /** Where in the tile to start */ srcOffsets: [x: number, y: number]; /** Write size */ writeSize: [width: number, height: number]; /** What tile to use */ tile: TileID; /** Notify that we have a clamp */ clamp?: boolean; /** Image data (added later) */ image?: ImageData; } /** * Given the WebMercator source tile and the padding, build a grid of tiles to render * * @param tile - metadata for the position in the quad-tree * @param padding - amount of padding to add to the tile * @param size - the size of each tile (size x size) * @param wantedSize - the size of the rendered tile. So if the source tiles are 256x256, you can set this to 512 * @param isTMS - if the tile scheme is TMS * @returns - the grid design to build/render a resultant tile */ export declare function buildTileGridWM(tile: TileID, padding: number, size: number, wantedSize: number, isTMS: boolean): TileGridGuide[]; /** * Given input tile grid guide, merge the images into a single image * * @param grid - the grid guides to merge with * @param size - the size of the final image * @param padding - the amount of padding that was applied * @returns The merged image */ export declare function mergeTileGridWM(grid: TileGridGuide[], size: number, padding: number): ImageData; //# sourceMappingURL=grid.d.ts.map