import type { P2 } from './geom'; import type { RNode } from './network'; import { CellSink } from './mesh'; export declare const PORTAL_BOX_LENGTH_M = 12; export declare const PORTAL_CLEAR_HEIGHT_M = 5.2; export interface Portal { node: RNode; /** Unit plan direction (map frame) from the portal into the tunnel. */ into: [number, number]; /** Clear opening: half the carriageway plus the sidewalks, as an offset interval to the left (positive) and right of the centre line. */ left: number; right: number; surfaceKind: number; seed: number; tunnelId: string; } export declare function portalCentre(p: Portal): P2; export declare function emitPortal(p: Portal, sink: CellSink): void;