import { AdminForthResource, IAdminForth } from '../index.js'; import { RateLimiterAbstract } from "rate-limiter-flexible"; import { type PeriodString } from '../types/Back.js'; export declare function getLoginPromptHTML(loginPrompt: string | (() => string | void | undefined | Promise) | undefined): Promise; export declare function guessLabelFromName(name: any): any; export declare const currentFileDir: (metaUrl: any) => string; export declare const ADMIN_FORTH_ABSOLUTE_PATH: string; export declare const ADMINFORTH_VERSION: string; export declare function getComponentNameFromPath(filePath: any): any; export declare function listify(param?: Array): Function[]; export declare function parseLooseJson(input: string): any; export declare function deepMerge(target: any, source: any): any; export declare function transformObject(obj: any, parentKey?: string, result?: {}): {}; export declare function createRGBA(color: string, opacity: number): string; export declare function parseColorForAliases(str: any): { aliasMatch: any; opacityMatch: any; darkenMatch: any; lightenMatch: any; inverseMatch: any; }; export declare function darkenRGBA(rgba: any): string; export declare function lightenRGBA(rgba: any): string; export declare function inverseRGBA(rgba: any): "rgba(0,0,0,1)" | "rgba(255,255,255,1)"; export declare function suggestIfTypo(names: string[], name: string): string; export declare function getClientIp(headers: object): void; export declare function md5hash(str: string): string; export declare function convertPeriodToSeconds(period: PeriodString): number; export declare class RateLimiter { rateLimiter: RateLimiterAbstract; static parseRate(rate: unknown): { points: number; duration: number; }; constructor(rate: string); consume(key: string): Promise; } export declare class RAMLock { private locks; constructor(); _getLock(key: any): { locked: boolean; queue: Function[]; }; run(key: any, fn: any): Promise; } export declare function isProbablyUUIDColumn(column: { name: string; type?: string; sampleValue?: any; }): boolean; export declare function slugifyString(str: string): string; export declare function cascadeChildrenDelete(resource: AdminForthResource, primaryKey: string, context: { adminUser: any; response: any; }, adminforth: IAdminForth): Promise<{ error: string | null; }>; export declare function hookResponseError(hookResponse: { ok: boolean; error?: string | null; }, hookName?: string): { error: string; }; export declare function checkIfFieldIsInsideResourceColumns(fieldName: string, resource: AdminForthResource): boolean; export declare function applyRegexValidation(value: any, validation: any): any; export declare function formatHugePluginError(message: string): string; export declare function checkIfLinkInAllowedHosts(url: string, allowedHosts: string[]): void; //# sourceMappingURL=utils.d.ts.map