/** * Process Layer Utilities * * Helper functions for the Process Layer including ID generation, * formatting, and validation utilities. * * @module execution/process/utils */ /** * Generate a unique process ID with a prefix * * Creates URL-safe, unique identifiers for processes. Uses nanoid for * cryptographically strong random IDs. * * @param prefix - Prefix for the ID (e.g., 'process', 'task') * @returns Unique ID string in format: `{prefix}-{randomId}` * * @example * ```typescript * const id = generateId('process'); * // Returns: 'process-a1b2c3d4' * ``` */ export declare function generateId(prefix: string): string; /** * Format duration in milliseconds to human-readable string * * @param ms - Duration in milliseconds * @returns Formatted duration string * * @example * ```typescript * formatDuration(1500); // "1.5s" * formatDuration(65000); // "1m 5s" * ``` */ export declare function formatDuration(ms: number): string; /** * Validate that a signal name is valid for Node.js * * @param signal - Signal name to validate * @returns True if signal is valid */ export declare function isValidSignal(signal: string): boolean; /** * Format error message from process exit * * @param exitCode - Process exit code * @param signal - Signal that terminated the process * @returns Formatted error message */ export declare function formatProcessError(exitCode: number | null, signal: string | null): string; //# sourceMappingURL=utils.d.ts.map