import { tl } from '../../tl/index.js';
/**
 * Given file size, determine the appropriate chunk size (in KB)
 * for upload/download operations.
 */
export declare function determinePartSize(fileSize: number, forUpload?: boolean): number;
/**
 * Returns `true` if all bytes in `buf` are printable ASCII characters
 */
export declare function isProbablyPlainText(buf: Uint8Array): boolean;
/**
 * Convert stripped JPEG (from `photoStrippedSize`) to full JPEG
 */
export declare function strippedPhotoToJpg(stripped: Uint8Array): Uint8Array;
/**
 * Inflate compressed preview SVG path to full SVG path
 * @param encoded
 */
export declare function inflateSvgPath(encoded: Uint8Array): string;
/**
 * Convert SVG path to SVG file
 * @param path  SVG path
 * @param size  Size attribute of the document, if available
 */
export declare function svgPathToFile(path: string, size?: tl.RawDocumentAttributeImageSize): Uint8Array;
/**
 * Get file name from file path
 *
 * @param path  File path
 */
export declare function extractFileName(path: string): string;
