naive-upload
Version:
<p align="left"> <a href="https://www.npmjs.org/package/naive-upload"> <img src="https://img.shields.io/npm/v/naive-upload.svg"> </a> <a href="https://bundlephobia.com/package/naive-upload@latest"> <img src="https://img.shields.io/bundl
140 lines (139 loc) • 4.3 kB
text/typescript
export default xt;
declare class de {
constructor(e: any, t: any);
index: any;
blob: any;
size: any;
}
declare class Rt {
getFileTypeByExtension(e: any): Promise<any>;
getFileTypeByMIME(e: any): Promise<any>;
getFileTypeImageUrl(e: any): string;
getUnknowFileTypeImageUrl(): string;
}
declare class H {
static equalError(e: any, t: any, n: any): boolean;
static getInstance(e: any, t: any): H;
moving(e: any, t: any): void;
currentX: any;
currentY: any;
transX: any;
transY: any;
lastTransX: any;
lastTransY: any;
checkRestore(): boolean;
start(e: any, t: any, n: any): void;
flag: boolean | undefined;
mouseMove: ((o: any) => void) | undefined;
scroll: ((o: any) => void) | undefined;
scrollX: any;
scrollY: any;
offset(e: any, t: any): void;
offsetX: any;
offsetY: any;
save(): void;
x: any;
y: any;
zIndex: any;
position: any;
transform: any;
restore(): void;
end(e: any): void;
}
declare class X {
Reader: FileReader;
readAsArrayBuffer(e: any): Promise<any>;
close(): void;
}
declare let B: {
new (): {};
getSize(e: any, t?: number, n?: number): string;
};
declare var w: any;
declare class j {
static getByExtension(e: any): any;
static getByMIME(e: any): any;
}
declare class Q {
static getInstance(e?: number, t?: boolean, n?: boolean): Promise<any>;
constructor(e: any, t: any);
debug: any;
enableWorker: any;
workerSupported: boolean;
checkFile(e: any, t: any, n: any): Promise<any>;
appendData(e: any, t: any): Promise<void>;
getResult(e: any): Promise<any>;
reset(): Promise<void>;
resetByIndex(e: any): Promise<void>;
closeByIndex(e: any): Promise<void>;
workerPostMessage(e: any, t: any): Promise<any>;
handler(e: any, t: any): Promise<any>;
finished: boolean | undefined;
cancel(): Promise<void>;
canceled: boolean | undefined;
paused: boolean | undefined;
pause(): Promise<void>;
continue(): Promise<void>;
close(): Promise<void>;
}
declare const he: Blob;
declare var R: any;
declare const ge: any;
declare var T: any;
declare class E {
static convertFrom(e: any): E;
constructor(e: any, t: any, n: any, u: any);
r: any;
g: any;
b: any;
a: any;
}
declare class z {
constructor(e: any);
file: any;
size: any;
objectURL: string | undefined;
}
declare var M: any;
declare let x: {
new (): {};
};
declare class S {
static s4(): string;
static new(): string;
}
declare class D extends Error {
static consoleWriteWithIndex(t: any, n: any): void;
static consoleWrite(t: any): void;
constructor(t: any, n: any);
innerError: any;
}
declare class N {
static getInstance(e: any, t: boolean | undefined, n: any, u?: boolean): Promise<any>;
constructor(e: any, t: any, n: any);
debug: any;
enableWorker: any;
workerSupported: boolean;
apiService: any;
uploadFile(e: any, t: any): Promise<any>;
uploadChunkFile(e: any, t: any, n: any, u: any): Promise<void>;
useWorkerUploadFile(e: any, t: any): Promise<any>;
useWorkerUploadChunkFile(e: any, t: any, n: any, u: any): Promise<any>;
workerPostMessage(e: any, t: any, n: any, u: any): Promise<any>;
closeByIndex(e: any): Promise<void>;
handler(e: any, t: any): Promise<any>;
finished: boolean | undefined;
delayTimes: number | undefined;
cancel(): Promise<void>;
canceled: boolean | undefined;
paused: boolean | undefined;
pause(): Promise<void>;
continue(): Promise<void>;
close(): Promise<void>;
}
declare const pe: Blob;
declare namespace xt {
function install(s: any): void;
function install(s: any): void;
}
export { de as ChunkFile, Rt as DefaultApiService, H as DraggingHelper, X as FileReadHelper, B as FileSizeHelper, w as FileType, j as FileTypeHelper, Q as HashHelper, he as HashWorkerScript, R as Layout, ge as NaiveUpload, T as PreUploadChunkFileState, E as RGBAColor, z as RawFile, M as RunMode, x as Settings, S as SimpleGuid, D as UploadError, N as UploadHelper, pe as UploadWorkerScript };