import type { CommandReply, Engine } from '../types.ts'; /** Error messages always start with "ERR ", so `if (parsed.error)` narrows to the success shape. */ type HashFieldsResult = { error: `ERR ${string}`; } | { error?: undefined; fields: Buffer[]; }; export declare function commandError(error: unknown): { error: string; }; export declare function parseHashFields(args: Buffer[], startIndex: number): HashFieldsResult; export declare function handleHashExpire(engine: Engine, args: Buffer[], { command, absolute, milliseconds }: { command: string; absolute: boolean; milliseconds: boolean; }): CommandReply; export {};