export declare function toTitleCase(str: string): string;
export declare function toUpperCamelCase(string: string): string;
export declare function sanitizeString(str: string): string;
export declare function trimToLength(value: string, maxLength: number): string;
export declare function streamToString(stream: NodeJS.ReadableStream): Promise<string>;
export declare function errorToString(error: any, maxLength?: number): string;
/**
 * Formats an error for display, including the cause chain and any Solana
 * program logs attached to preflight failure errors.
 */
export declare function formatError(error: unknown, depth?: number): string;
export declare const fromHexString: (hexstr: string) => Buffer<ArrayBuffer>;
export declare const toHexString: (buf: Buffer) => string;
//# sourceMappingURL=strings.d.ts.map