teko-file-history
Version:
File history component for Teko system
10 lines (9 loc) • 731 B
TypeScript
import { RcFile } from 'antd/lib/upload';
import { ImportRules } from '../types';
declare const _default: {
getImportHint: ({ maxSize, types }: ImportRules, translate: (key: string) => string) => string;
validateNumberOfLines: (file: File, maxLines: number) => Promise<boolean>;
downloadFileByUrl: (url: string, env: string | undefined, accessToken: string | undefined, translate: (key: string) => string, alterFileName?: boolean, dateFormat?: string | undefined, createdAt?: number | undefined) => Promise<void> | undefined;
getBeforeUploadHandler: (rules: ImportRules, onSuccess: (file: RcFile) => void, translate: (key: string) => string) => (file: RcFile) => Promise<void>;
};
export default _default;