/** * The pulse daemon — the lobster's tail-flick rhythm. * * Runs on a depth-aware interval (60s deep → 5min shallow → 15min shoreline). * Each tick: refresh balances, check depth, run any scheduled tasks, beach if reserves hit zero. */ import { readBalances } from '../identity/balances.js'; import type { Depth } from '../types/index.js'; export interface PulseHandlers { onTick: (ctx: { depth: Depth; balances: Awaited>; }) => Promise; onDepthChange: (prev: Depth, next: Depth) => Promise; onBeach: () => Promise; } export declare function startPulse(rpcUrl: string, handlers: PulseHandlers): { stop: () => void; };