import * as PDFTK from 'node-pdftk'; PDFTK.configure({ bin: '/usr/local/bin/pdftk', Promise, ignoreWarnings: true, tempDir: './pdftk', }); const pdftk = PDFTK.input('file'); // $ExpectType PDFTK pdftk.allow(['FillIn']).attachFiles(['./file1.pdf', './file2.pdf']); // $ExpectType PDFTK pdftk.allow(['FillIn']).compress().output('./fileoutput.pdf'); // $ExpectType Promise pdftk.allow(['FillIn']).compress().output('./fileoutput.pdf', './destination/folder'); // $ExpectType Promise pdftk.allow(['FillIn']).compress().output(); // $ExpectType Promise PDFTK.input('file').flatten().ignoreWarnings().inputPw('password').burst('page_%02d.pdf'); // $ExpectType Promise PDFTK.input('file').flatten().ignoreWarnings().inputPw('password').burst(); // $ExpectType Promise