import type { ReplacePrefix } from '../types';
/**
* 是否以某个前缀开头
*
* Whether starts with prefix
* @param str - 字符串 | string
* @param prefix - 前缀 | prefix
* @returns 是否以某个前缀开头 | whether starts with prefix
*/
export declare function startsWith(str: string, prefix: string): boolean;
/**
* 添加前缀
*
* Add prefix
* @param str - 字符串 | string
* @param prefix - 前缀 | prefix
* @returns 添加前缀后的字符串 | string with prefix
*/
export declare function addPrefix(str: string, prefix: string): string;
/**
* 移除前缀
*
* Remove prefix
* @param string - 字符串 | string
* @param prefix - 前缀 | prefix
* @param lowercaseFirstLetter - 是否小写首字母 | whether lowercase first letter
* @returns 移除前缀后的字符串 | string without prefix
*/
export declare function removePrefix(string: string, prefix?: string, lowercaseFirstLetter?: boolean): string;
/**
* 从样式中提取子样式
*
* Extract sub style from style
* @param style - 样式 | style
* @param prefix - 子样式前缀 | sub style prefix
* @returns 子样式 | sub style
*/
export declare function subStyleProps>(style: object, prefix: string): T;
/**
* 从对象中提取指定前缀的属性,并移除前缀
*
* Extract properties with the specified prefix from the object and remove the prefix
* @param obj - 对象 | object
* @param prefix - 前缀 | prefix
* @returns 新对象 | new object
*/
export declare function subObject(obj: Record, prefix: string): Record;
/**
* 从样式中排除子样式
*
* Omit sub style from style
* @param style - 样式 | style
* @param prefix - 子样式前缀 | sub style prefix
* @returns 排除子样式后的样式 | style without sub style
*/
export declare function omitStyleProps>(style: Record, prefix: string | string[]): T;
/**
* 替换前缀
*
* Replace prefix
* @param style - 样式 | style
* @param oldPrefix - 旧前缀 | old prefix
* @param newPrefix - 新前缀 | new prefix
* @returns 替换前缀后的样式 | style with replaced prefix
*/
export declare function replacePrefix(style: T, oldPrefix: string, newPrefix: string): ReplacePrefix;