import { NameTransforms, ContractNames } from '../types'; /** * Transform a method name into various case formats * @param methodName The method name (compute_ prefix is automatically stripped) * @returns All name transformations */ export declare function transformMethodName(methodName: string): NameTransforms; /** * Transform a contract name into all required variants * @param contractName The contract name (e.g., "CryptoOracle" or "ICryptoOracle") * @returns All contract name transformations */ export declare function transformContractName(contractName: string): ContractNames; /** * Extract struct name from internal type */ export declare function extractStructName(internalType: string): string | null; /** * Converts string to snake_case */ export declare function toSnakeCase(str: string): string; /** * Converts string to a valid identifier by removing invalid characters, capitalizing the first letter, * and capitalizing letters after hyphens or underscores. */ export declare function toIdentifier(str: string): string; /** * Converts string to kebab-case */ export declare function toKebabCase(str: string): string; /** * Renders a Mustache template to a file * @param templateDir Directory containing templates * @param tpl Template file name * @param out Output file path * @param data Template data */ export declare function render(templateDir: string, tpl: string, out: string, data: Record): void; /** * Tidies a string by replacing escaped newlines and reducing multiple consecutive newlines * @param s String to tidy * @returns Tidied string */ export declare function tidy(s: string): string; /** * Adds a timeout to a promise * @param promise Promise to add timeout to * @param timeoutMs Timeout in milliseconds * @param defaultValue Default value to return if timeout is reached * @returns Promise with timeout */ export declare function withTimeout(promise: Promise, timeoutMs: number, defaultValue: T): Promise; /** * Handles prompt cancellation */ export declare const onCancel: () => never; /** * Sanitizes Ethereum private keys in a string by replacing them with [REDACTED] * @param input The string to sanitize */ export declare const sanitizeLogs: (input: string) => string; //# sourceMappingURL=general.d.ts.map