import { File } from "tns-core-modules/file-system"; import { ListResult, UploadMetadata } from "../../storage/storage"; export declare module storage { interface UploadTaskSnapshot { downloadURL: string | null; totalBytes: number; } interface Metadata { string: string; } class Reference { private path; parent: Reference | null; root: Reference; fullPath: string; constructor(path?: string); child(path: string): storage.Reference; delete(): Promise; getDownloadURL(): Promise; getMetadata(): Promise; listAll(): Promise; put(data: File | string, metadata?: UploadMetadata): Promise; download(downloadToPath: string): Promise; } class Storage { ref(): Reference; } }