export declare function isValidUrl(urlString: string): boolean; export declare function findAvailablePort(startPort?: number, maxAttempts?: number): Promise; /** * Determines whether the given TCP port is available for binding on the local machine. * * @param port - The port number to check (1–65535) * @returns `true` if the port can be bound (is available), `false` otherwise */ export declare function isPortAvailable(port: number): Promise; /** * Parses a TCP port number from command-line arguments using the `--port` flag. * * If `--port` is present and followed by an integer between 1 and 65535, returns that port. * * @returns The parsed port number if valid, `null` if the flag is missing or the value is invalid. */ export declare function parsePortFromArgs(): number | null; /** * Checks if the `--no-open` flag is present in command-line arguments. * * @returns `true` if `--no-open` is present, `false` otherwise. */ export declare function hasNoOpenFlag(): boolean; /** * Helper function to format error responses with context and timestamp */ export declare function formatErrorResponse(error: unknown, context: string): { stack?: string | undefined; error: string; context: string; timestamp: string; }; //# sourceMappingURL=utils.d.ts.map