import type { GeoPoint } from "../types.ts"; import type { Place } from "./places.ts"; /** How long the turn to a place takes, in milliseconds: slow enough to follow. */ export declare const PLACE_GLIDE_MS = 900; /** The place a page names: by its id, else by its name in any case. */ export declare const findPlace: (places: readonly Place[], text: string) => Place | undefined; /** * The yaw and tilt that bring a place to the middle of a view whose yaw and tilt 0 look at `base` (yaw turns west, tilt tips south), the yaw taken the shorter way round from the one now and the tilt * held to 90 either way, as the controls hold it. */ export declare function aimAt(base: GeoPoint, place: GeoPoint, now: { yaw: number; tilt: number; }): { yaw: number; tilt: number; }; /** * Move a view's yaw and tilt from `from` to `to`: eased over {@link PLACE_GLIDE_MS} one frame at a time, or at once when `smooth` is false. `alive` false stops it (another glide began, the element left the page). */ export declare function glideView(set: (yaw: number, tilt: number, final: boolean) => void, from: { yaw: number; tilt: number; }, to: { yaw: number; tilt: number; }, smooth: boolean, alive: () => boolean): void;