import type { SKRSContext2D } from '@napi-rs/canvas';
export interface ParsedUsername {
    username: string;
    newSize: number;
    textLength: number;
}
export declare function parseUsername(username: string | null | undefined, ctx: SKRSContext2D, font: string, size: number, maxLength: number, weight?: string): ParsedUsername;
export declare function abbreviateNumber(number: number): string;
export declare function getDateOrString(dateInput: Date | string | null | undefined, createdTimestamp: string, localDateType?: string): string;
export declare function truncateText(text: string, limit?: number, fromEnd?: boolean): string;
//# sourceMappingURL=text.d.ts.map