import { Phase, PhaseKind } from './contract'; import { VoyageOptions } from './config'; import { VoyageRow } from './voyage'; export declare function classifyPhase(row: VoyageRow, openKnots: number): PhaseKind; interface Pt { ts: number; lat: number | null; lon: number | null; } export interface OpenPhase { kind: PhaseKind; start: Pt; } export declare class PhaseStateMachine { private opts; private curKind; private curStart; private last; private candKind; private candStart; private candStreakMs; private lastTs; constructor(opts: VoyageOptions, restored?: OpenPhase | null); feed(row: VoyageRow): Phase | null; current(): Phase | null; } export {};