/** * Utility functions for browser-use */ /** * Check if a domain pattern has complex wildcards that could match too many domains */ export declare function isUnsafePattern(pattern: string): boolean; /** * Check if a URL is a new tab page */ export declare function isNewTabPage(url: string): boolean; /** * Check if a URL matches a domain pattern - SECURITY CRITICAL */ export declare function matchUrlWithDomainPattern(url: string, domainPattern: string, logWarnings?: boolean): boolean; /** * Deep merge two objects */ export declare function mergeDicts(a: Record, b: Record, path?: string[]): Record; /** * Get the browser-use package version */ export declare function getBrowserUseVersion(): string; /** * Pretty-print a path, shorten home dir to ~ and cwd to . */ export declare function logPrettyPath(path: string | null | undefined): string; /** * Truncate/pretty-print a URL with a maximum length, removing the protocol and www. prefix */ export declare function logPrettyUrl(s: string, maxLen?: number): string; /** * Check if all required environment variables are set */ export declare function checkEnvVariables(keys: string[], anyOrAll?: 'any' | 'all'): boolean; /** * Sleep for the specified number of milliseconds */ export declare function sleep(ms: number): Promise; /** * Time execution decorator for async functions */ export declare function timeExecution(additionalText?: string): Promise>(target: any, propertyName: string, descriptor: TypedPropertyDescriptor) => TypedPropertyDescriptor; //# sourceMappingURL=utils.d.ts.map