@agentic-intelligence/dom-engine
Version:
Agentic DOM Intelligence - A lightweight TypeScript library for DOM analysis and manipulation, designed for web automation and AI agents
26 lines • 932 B
TypeScript
/**
* General utilities for the DOM Engine library
*/
/**
* Generates a unique ID using crypto.randomUUID()
*/
export declare function generateUniqueId(): string;
/**
* Cleans text by removing line breaks and multiple spaces
* @param text - Text to clean
* @returns Clean text or empty string if null/undefined
*/
export declare function cleanText(text: string | null | undefined): string;
/**
* Filters object properties by removing empty or null values
* @param obj - Object to filter
* @returns Object with only valid properties
*/
export declare function filterValidProperties<T extends Record<string, unknown>>(obj: T): Partial<T>;
/**
* Filters CSS styling classes, keeping only semantic classes
* @param className - CSS class to filter
* @returns Filtered class without styles
*/
export declare function filterStylingClasses(className: string | null | undefined): string;
//# sourceMappingURL=helpers.d.ts.map