import { type CitySourceFrame, type Vec2 } from '../../source'; import { type SeaLevelResolution } from './seaLevel'; export interface Frame { seaLevelMetres: number; /** Where `seaLevelMetres` came from: the bundle's declared value, or the surface its water field shows (see seaLevel.ts). */ seaLevel: SeaLevelResolution; /** Plan AABB in scene metres. */ bounds: [Vec2, Vec2]; manifest: CitySourceFrame; saveName: string | null; } export interface FrameOptions { /** [minX, minZ, maxX, maxZ]; snapped outwards to the 256 m grid. Default: the whole CS2 world. */ bounds?: [number, number, number, number]; } export declare function snapBounds(b: [number, number, number, number]): [Vec2, Vec2]; export declare function readFrame(bundle: string, options?: FrameOptions): Promise; export declare function insideBounds(frame: Frame, x: number, z: number): boolean;