/** * Time Warp Kick Utility * * MechJeb often gets stuck during ship alignment and fails to start auto time warp. * This utility "kicks" time warp by starting it briefly (~1 second) then stopping, * which triggers MechJeb to properly take over time warp management. */ import type { KosConnection } from '../transport/kos-connection.js'; export interface TimeWarpKickOptions { /** Duration to run time warp in milliseconds (default: 1000ms = 1 second) */ duration?: number; /** Time warp rate to use (1-4 for physics warp, 5-7 for rails warp) */ warpRate?: number; /** Delay after kick before continuing (default: 500ms) */ postKickDelay?: number; } /** * Perform a time warp kick to trigger MechJeb's auto warp. * * This temporarily starts time warp, then stops it, which "kicks" MechJeb * into properly managing time warp when it gets stuck during alignment. * * @param conn kOS connection * @param options Time warp kick configuration */ export declare function timeWarpKick(conn: KosConnection, options?: TimeWarpKickOptions): Promise; /** * Install a WHEN trigger to perform time warp kick after a condition is met. * * This is useful for triggering the kick when a burn completes or when * approaching a maneuver node. * * @param conn kOS connection * @param condition kOS condition expression (e.g., "NOT HASNODE") * @param bufferSeconds Additional delay in seconds before kick (default: 10) * @returns Cleanup function to remove the trigger */ export declare function installTimeWarpKickTrigger(conn: KosConnection, condition: string, bufferSeconds?: number): Promise<() => Promise>; /** * Perform an immediate time warp kick for situations where time warp should start right away. * * @param conn kOS connection */ export declare function immediateTimeWarpKick(conn: KosConnection): Promise; /** * Install a delayed time warp kick trigger. * * Useful for post-burn scenarios where MechJeb needs to coast to next maneuver. * * @param conn kOS connection * @param delaySeconds Delay in seconds before performing kick */ export declare function delayedTimeWarpKick(conn: KosConnection, delaySeconds: number): Promise; //# sourceMappingURL=time-warp-kick.d.ts.map