import { type PropKind } from '../../cs2/props'; import { type PropPrototype } from '../../cs2/propsPrototype'; import type { CitySource, Vec2 } from '../source'; export declare const VAULT_DEFAULT_API = "https://helix-backend-api-helix3.up.railway.app"; interface Wanted { kind: string; label: string; queries: string[]; words: string[]; facing?: 'road' | 'away' | 'none'; } export declare const WANTED_PROPS: Wanted[]; /** Kit kinds the catalog search also answers for (no source POI names them today): reported, never placed. */ export declare const KIT_KINDS: PropKind[]; export interface PropCandidate { title: string; packageId: string; version: string; manifestCid: string; bytes: number; /** LOD GLBs, finest first (the root, then the quality variants). Present for kit Packages. */ lods?: Array<{ cid: string; url: string; }>; kit?: boolean; } export interface PropFinding { kind: string; label: string; poiCount: number; status: 'placeable' | 'unplaceable' | 'none' | 'unreachable'; candidate?: PropCandidate; /** Every placeable kit Package for the kind, in catalog order (up to four); POIs pick among them by id hash. */ candidates?: PropCandidate[]; reason: string; } export interface PropsReport { enabled: boolean; api?: string; placed?: number; prototypes?: number; placedByKind?: Record; adjustedByKind?: Record; skippedByReason?: Record; findings?: PropFinding[]; missing?: string[]; } export interface PropsResult { report: PropsReport; findings: PropFinding[]; } /** Why a GLB cannot be placed under the open-world contract; null when it can. */ export declare function glbRefusal(bytes: Uint8Array): string | null; export declare function resolveProps(source: CitySource, options: { api?: string; log?: (line: string) => void; offline?: boolean; }): Promise; export interface PropRecord { id: string; prototype: string; position: [number, number, number]; rotation: [number, number, number, number]; scale: 1; } export interface PlacedProps { prototypes: PropPrototype[]; records: PropRecord[]; placedByKind: Record; /** Source POIs of a placeable kind that could not be placed (outside the bounds, on a bridge deck, no room off the roadway). */ skipped: Record; /** Placed POIs that were moved off the roadway (a signal on a junction node goes to a corner; a bus stop on the centreline to the kerb). */ adjusted: Record; /** Why POIs were not placed: `bounds`, `deck` (on a bridge), `roadway` (no room outside the asphalt) or `building` (inside a footprint). */ skippedByReason: Record; } /** * How far outside the kerb the prop's origin stands, in metres: the pole of a lamp or signal just clear of the asphalt, a bench or * shelter by half its depth more. Props that reach over the road with an arm (lamps, signals) are poles at the origin. */ export declare const KERB_CLEARANCE_M: Record; /** * One structural record per source POI of a kit-covered kind, on the ground, faced toward the nearest street (the prop's +Z * front reaches over the road: lamp arms, signal heads, mailbox doors). A POI beyond `bounds` is not placed. Which of a kind's * (up to four) Packages a POI gets is a pure function of its id. */ export declare function placeProps(source: CitySource, findings: PropFinding[], options: { heightAt: (x: number, z: number) => number; bounds: [Vec2, Vec2]; log?: (line: string) => void; }): Promise; /** * A CS2 capture's placed objects (`helix city objects cs2`: parked cars, ships, boats, landmark bridge towers) as placement prototypes and * records, appended to `placed` (or standing alone). The records keep the captured height: a car on a deck, a ship on the water and a tower * footed in the bay all stand where the game stands them. */ export declare function placeCs2Objects(dir: string, placed: PlacedProps | null, bounds: [Vec2, Vec2], log?: (line: string) => void): Promise; /** The capture's harbour groups (`helix.cs2-objects/1` `harbour`): one GLB each, streamed in within `activationM` of its bounds. */ export declare function readCs2Harbour(dir: string): Promise<{ activationM: number; exitMarginM: number; groups: Array<{ id: string; glb: Uint8Array; bounds: { min: [number, number, number]; max: [number, number, number]; }; triangles: number; }>; } | null>; /** The capture's painted landmark bridges (`helix.cs2-objects/1` `landmarks`), drawn whole in one eager node; null when it has none. */ export declare function readCs2Landmarks(dir: string): Promise<{ glb: Uint8Array; bounds: { min: [number, number, number]; max: [number, number, number]; }; triangles: number; } | null>; export {};