import * as _midscene_spp_shared_constants from '@midscene_spp/shared/constants';
import { B as BaseElement, j as ElementTreeNode } from './types-81ea39fa.js';
import 'openai/resources';

declare function truncateText(text: string | number | object | undefined, maxLength?: number): string;
declare function trimAttributes(attributes: Record<string, any>, truncateTextLength?: number): {
    [key: string]: string;
    nodeType: _midscene_spp_shared_constants.NodeType;
};
declare function descriptionOfTree<ElementType extends BaseElement = BaseElement>(tree: ElementTreeNode<ElementType>, truncateTextLength?: number, filterNonTextContent?: boolean): string;

export { descriptionOfTree, trimAttributes, truncateText };
