import { outbox } from 'file-transfer' ; declare const filename , data ; outbox . enqueue ( filename , data ) . then ( ( ft ) => { console . log ( `Transfer of ${ ft . name } successfully queued.` ) ; } ) . catch ( ( error ) => { console . log ( `Failed to enqueue ${ filename }. Error: ${ error }` ) ; } ) ; outbox . enqueueFile ( 'app.txt' ) . then ( ( ft ) => { console . log ( `Transfer of ${ ft . name } successfully queued.` ) ; } ) . catch ( ( error ) => { console . log ( `Failed to schedule transfer: ${ error }` ) ; } ) ;