type Phase = 'image' | 'execute' | 'flush' | 'reply' | 'run'; type Command = { session: number; command: string; }; export declare const redisServiceTimes: { now: () => number; /** A command starts: `received` is when its bytes were read, `waiting` the commands read and not yet started. */ begin(received: number, waiting: number, command: Command): void; /** Time of the open command in one phase. */ add(phase: Phase, ms: number): void; wrote(): void; /** A run begins: its first stretch is counted from here. */ lapFrom(): void; /** The stretch of the open command's run that ends here, by name. Outside a served command it is nothing. */ lap(name: string): void; /** A run has ended: nothing after it is a stretch of it. */ lapEnd(name: string): void; /** The open command has answered (or blocked, or failed with its error answered). */ end(threw?: boolean): void; /** `work`, its time counted in `phase` of the open command. */ timed(phase: Phase, work: () => T): T; phases: readonly Phase[]; }; export {};