import type { BuildingUse, FacadeMaterial } from '../source'; export declare const FACADE_ATTRIBUTE = "_FACADE"; export declare const CITY_MATERIALS_GLTF_EXTENSION = "HELIX_materials_city"; export declare const CITY_MATERIALS_VERSION = 1; export declare const GROUND_TYPE: { readonly BLANK: 0; readonly STOREFRONT: 1; readonly LOBBY: 2; readonly RESIDENTIAL: 3; }; export type GroundType = (typeof GROUND_TYPE)[keyof typeof GROUND_TYPE]; /** Style family names in the engine's base table order (index = family number; the engine repeats them to fill 64). */ export declare const FACADE_FAMILY_NAMES: readonly ["brick-red", "brick-brown", "brick-buff", "limestone", "concrete-punched", "white-render", "terracotta", "stucco", "brick-red-2", "granite-deco", "glass-blue", "glass-green", "glass-grey", "ribbon-concrete", "ribbon-white", "party-brick", "warehouse-metal", "warehouse-brick", "civic-limestone", "industrial-ribbon"]; export type FacadeFamilyName = (typeof FACADE_FAMILY_NAMES)[number]; export interface FacadeParams { family: number; seed: number; floorHeightM: number; groundType: number; groundExtraM: number; bayWidthM: number; windowRatio: number; tint: number; heightM: number; } export type FacadeLanes = [number, number, number, number]; export declare function packFacade(p: FacadeParams): FacadeLanes; export declare function unpackFacade(lanes: readonly [number, number, number, number]): FacadeParams; /** Same lanes with another ground type (the storefront side differs face by face). */ export declare function withGroundType(lanes: FacadeLanes, groundType: number): FacadeLanes; /** The 256-entry tint palette multiplier (params.ts `FACADE_TINTS`): index 0 neutral. */ export declare function tintMultiplier(index: number): [number, number, number]; export type LinearRgb = [number, number, number]; /** Far-fold average of wall and glass, linear RGB: what a runtime that ignores `HELIX_materials_city` draws. */ export declare function facadeFallbackColor(p: Pick): LinearRgb; /** Roof colour from the family's roof layer. */ export declare function roofFallbackColor(family: number): LinearRgb; export declare function hexToLinear(colour: string): LinearRgb | null; export interface FacadeChoice { params: FacadeParams; /** Wall colour (linear) and roof colour (linear): the portable fallback. */ wall: LinearRgb; roof: LinearRgb; familyName: FacadeFamilyName; } export declare const FLOOR_HEIGHT_M: Record; export declare const GROUND_FLOOR_M = 4.5; export interface FacadeInput { id: string; use: BuildingUse; material?: FacadeMaterial; familyName?: string; facadeColour?: string; /** Total height of the tallest part above the seat, metres. */ heightM: number; levels: number; } export declare function chooseFacade(input: FacadeInput): FacadeChoice; /** The ground-floor type for a building's use when a face is on the street side. */ export declare function streetGroundType(use: BuildingUse, storefront: boolean): GroundType;