/**
 * 请求 hashCode
 * @example
 * ```ts
 * const { hash, timestamp } = await requestHashCode();
 * console.log(hash, timestamp);
 * ```
 * @ignore
 */
export declare function requestHashCode(url?: string): Promise<{
    hash: string;
    timestamp: number;
}>;
/**
 * 请求上传文件
 * @example
 * ```ts
 * const { hash } = await requestHashCode();
 * const { url } = await requestUploadFile({
 *   file: someFile,
 *   hashCode: hash,
 * });
 * console.log('uploaded:', url);
 * ```
 * @ignore
 */
export declare function requestUploadFile({ file, hashCode, uploadFileKey, url, }: {
    file: File;
    hashCode: string;
    uploadFileKey?: string;
    url?: string;
}): Promise<{
    url: string;
}>;
