export const libre_office_input_format = {
    form: 'list',
    list: [
        'html',
        'mediawiki',
        'csv',
        'pptx',
        'ppt',
        'docx',
        'doc',
        'pdf',
        'wmf',
        'emf',
        'svg',
        'xlsx',
        'xls',
    ],
};
export const libre_office_output_format = {
    form: 'list',
    list: [
        'html',
        'mediawiki',
        'csv',
        'pptx',
        'ppt',
        'wmf',
        'emf',
        'svg',
        'xlsx',
        'xls',
        'epub',
        'pdf',
    ],
};
export const pandoc_format_content = {
    form: 'hash',
    bond: {
        head: { like: 'string' },
    },
    hash: {
        bibtex: { head: 'BibTeX bibliography' },
        biblatex: { head: 'BibLaTeX bibliography' },
        bits: { head: 'BITS XML, alias for jats' },
        commonmark: { head: 'CommonMark Markdown' },
        commonmark_x: { head: 'CommonMark Markdown with extensions' },
        creole: { head: 'Creole 1.0' },
        csljson: { head: 'CSL JSON bibliography' },
        csv: { head: 'CSV table' },
        tsv: { head: 'TSV table' },
        docbook: { head: 'DocBook' },
        docx: { head: 'Word docx' },
        dokuwiki: { head: 'DokuWiki markup' },
        endnotexml: { head: 'EndNote XML bibliography' },
        epub: { head: 'EPUB' },
        fb2: { head: 'FictionBook2 e-book' },
        haddock: { head: 'Haddock markup' },
        html: { head: 'HTML' },
        ipynb: { head: 'Jupyter notebook' },
        jats: { head: 'JATS XML' },
        jira: { head: 'Jira/Confluence wiki markup' },
        json: { head: 'JSON version of native AST' },
        latex: { head: 'LaTeX' },
        markdown: { head: 'Pandoc Markdown' },
        markdown_mmd: { head: 'MultiMarkdown' },
        markdown_phpextra: { head: 'PHP Markdown Extra' },
        markdown_strict: { head: 'original unextended Markdown' },
        mediawiki: { head: 'MediaWiki markup' },
        man: { head: 'roff man' },
        muse: { head: 'Muse' },
        native: { head: 'Native Haskell' },
        opml: { head: 'OPML' },
        org: { head: 'Emacs Org mode' },
        ris: { head: 'RIS bibliography' },
        rtf: { head: 'Rich Text Format' },
        rst: { head: 'reStructuredText' },
        t2t: { head: 'txt2tags' },
        textile: { head: 'Textile' },
        tikiwiki: { head: 'TikiWiki markup' },
        twiki: { head: 'TWiki markup' },
        typst: { head: 'typst' },
        vimwiki: { head: 'Vimwiki' },
        asciidoc: {
            head: 'modern AsciiDoc as interpreted by AsciiDoctor',
        },
        asciidoc_legacy: {
            head: 'AsciiDoc as interpreted by asciidoc-py',
        },
        asciidoctor: { head: 'deprecated synonym for asciidoc' },
        beamer: { head: 'LaTeX beamer slide show' },
        chunkedhtml: { head: 'zip archive of multiple linked HTML files' },
        context: { head: 'ConTeXt' },
        docbook4: { head: 'DocBook 4' },
        docbook5: { head: 'DocBook 5' },
        epub3: { head: 'EPUB v3 book' },
        epub2: { head: 'EPUB v2' },
        gfm: { head: 'GitHub-Flavored Markdown' },
        html5: { head: 'HTML' },
        html4: { head: 'XHTML 1.0 Transitional' },
        icml: { head: 'InDesign ICML' },
        jats_archiving: {
            head: 'JATS XML, Archiving and Interchange Tag Set',
        },
        jats_articleauthoring: {
            head: 'JATS XML, Article Authoring Tag Set',
        },
        jats_publishing: { head: 'JATS XML, Journal Publishing Tag Set' },
        markua: { head: 'Markua' },
        ms: { head: 'roff ms' },
        odt: { head: 'OpenOffice text document' },
        opendocument: { head: 'OpenDocument' },
        pdf: { head: 'PDF' },
        plain: { head: 'Plain text' },
        pptx: { head: 'PowerPoint' },
        texinfo: { head: 'GNU Texinfo' },
        slideous: { head: 'Slideous HTML and JavaScript slide show' },
        slidy: { head: 'Slidy HTML and JavaScript slide show' },
        dzslides: { head: 'DZSlides HTML5 + JavaScript slide show' },
        revealjs: { head: 'reveal.js HTML5 + JavaScript slide show' },
        s5: { head: 'S5 HTML and JavaScript slide show' },
        tei: { head: 'TEI Simple' },
        xwiki: { head: 'XWiki markup' },
        zimwiki: { head: 'ZimWiki markup' },
    },
};
export const pandoc_output_format = {
    form: 'list',
    list: [
        'asciidoc',
        'asciidoc_legacy',
        'asciidoctor',
        'beamer',
        'bibtex',
        'biblatex',
        'chunkedhtml',
        'commonmark',
        'commonmark_x',
        'context',
        'csljson',
        'docbook4',
        'docbook5',
        'docx',
        'dokuwiki',
        'epub3',
        'epub2',
        'fb2',
        'gfm',
        'haddock',
        'html5',
        'html4',
        'icml',
        'ipynb',
        'jats_archiving',
        'jats_articleauthoring',
        'jats_publishing',
        'jats',
        'jira',
        'json',
        'latex',
        'man',
        'markdown',
        'markdown_mmd',
        'markdown_phpextra',
        'markdown_strict',
        'markua',
        'mediawiki',
        'ms',
        'muse',
        'native',
        'odt',
        'opml',
        'opendocument',
        'org',
        'pdf',
        'plain',
        'pptx',
        'rst',
        'rtf',
        'texinfo',
        'textile',
        'slideous',
        'slidy',
        'dzslides',
        'revealjs',
        's5',
        'tei',
        'typst',
        'xwiki',
        'zimwiki',
    ],
};
export const pandoc_input_format = {
    form: 'list',
    list: [
        'bibtex',
        'biblatex',
        'bits',
        'commonmark',
        'commonmark_x',
        'creole',
        'csljson',
        'csv',
        'tsv',
        'docbook',
        'docx',
        'dokuwiki',
        'endnotexml',
        'epub',
        'fb2',
        'gfm',
        'haddock',
        'html',
        'ipynb',
        'jats',
        'jira',
        'json',
        'latex',
        'markdown',
        'markdown_mmd',
        'markdown_phpextra',
        'markdown_strict',
        'mediawiki',
        'man',
        'muse',
        'native',
        'odt',
        'opml',
        'org',
        'ris',
        'rtf',
        'rst',
        't2t',
        'textile',
        'tikiwiki',
        'twiki',
        'typst',
        'vimwiki',
    ],
};
export const puppeteer_life_cycle_event = {
    form: 'list',
    list: ['load', 'domcontentloaded', 'networkidle0', 'networkidle2'],
};
export const puppeteer_life_cycle_event_content = {
    form: 'hash',
    link: 'puppeteer_life_cycle_event',
    bond: {
        note: { like: 'string' },
    },
    hash: {
        load: { note: `Waits for the 'load' event.` },
        domcontentloaded: {
            note: `Waits for the 'DOMContentLoaded' event.`,
        },
        networkidle0: {
            note: `Waits till there are no more than 0 network connections for at least 500 ms.`,
        },
        networkidle2: {
            note: `Waits till there are no more than 2 network connections for at least 500 ms.`,
        },
    },
};
export const convert_html_to_pdf = {
    form: 'form',
    link: {
        input: {
            link: {
                file: {
                    link: {
                        path: { like: 'string' },
                        buffer: { like: 'ArrayBuffer', need: false },
                    },
                },
            },
        },
        output: {
            link: {
                file: {
                    link: {
                        path: { like: 'string' },
                    },
                },
            },
        },
        viewport: {
            link: {
                width: { like: 'natural_number', need: false },
                height: { like: 'natural_number', need: false },
            },
        },
        proxy: { like: 'string', need: false },
        waitUntil: { like: 'puppeteer_life_cycle_event', need: false },
    },
};
export const convert_html_to_png = {
    form: 'form',
    link: {
        input: {
            link: {
                file: {
                    link: {
                        path: { like: 'string' },
                        buffer: { like: 'ArrayBuffer', need: false },
                    },
                },
            },
        },
        output: {
            link: {
                file: {
                    link: {
                        path: { like: 'string' },
                    },
                },
            },
        },
        viewport: {
            link: {
                width: { like: 'natural_number', need: false },
                height: { like: 'natural_number', need: false },
            },
        },
        proxy: { like: 'string', need: false },
        waitUntil: { like: 'puppeteer_life_cycle_event', need: false },
    },
};
export const build_command_to_convert_document_with_pandoc = {
    form: 'form',
    link: {
        input: {
            link: {
                file: {
                    link: {
                        path: { like: 'string', name: { mark: 'i' } },
                    },
                },
            },
        },
        output: {
            link: {
                file: {
                    link: {
                        path: { like: 'string', name: { mark: 'o' } },
                    },
                },
                format: {
                    like: 'pandoc_output_format',
                    need: false,
                    name: { mark: 'b' },
                },
            },
        },
    },
};
export const calibre_input_format_content = {
    form: 'hash',
    bond: {
        head: { like: 'string' },
    },
    hash: {
        azw4: { head: 'AZW4' },
        chm: { head: 'CHM' },
        comic: { head: 'Comic' },
        djvu: { head: 'DJVU' },
        docx: { head: 'DOCX' },
        epub: { head: 'EPUB' },
        fb2: { head: 'FB2' },
        htlz: { head: 'HTLZ' },
        html: { head: 'HTML' },
        lit: { head: 'LIT' },
        lrf: { head: 'LRF' },
        mobi: { head: 'MOBI' },
        odt: { head: 'ODT' },
        pdb: { head: 'PDB' },
        pdf: { head: 'PDF' },
        pml: { head: 'PML' },
        rb: { head: 'RB' },
        rtf: { head: 'RTF' },
        recipe: { head: 'Recipe' },
        snb: { head: 'SNB' },
        tcr: { head: 'TCR' },
        txt: { head: 'TXT' },
    },
};
export const calibre_output_format_content = {
    form: 'hash',
    bond: {
        head: { like: 'string' },
    },
    hash: {
        azw3: { head: 'AZW3' },
        docx: { head: 'DOCX' },
        epub: { head: 'EPUB' },
        fb2: { head: 'FB2' },
        html: { head: 'HTML' },
        htmlz: { head: 'HTMLZ' },
        lit: { head: 'LIT' },
        lrf: { head: 'LRF' },
        mobi: { head: 'MOBI' },
        oeb: { head: 'OEB' },
        pdb: { head: 'PDB' },
        pdf: { head: 'PDF' },
        pml: { head: 'PML' },
        rb: { head: 'RB' },
        rtf: { head: 'RTF' },
        snb: { head: 'SNB' },
        tcr: { head: 'TCR' },
        txt: { head: 'TXT' },
        txtz: { head: 'TXTZ' },
    },
};
export const calibre_input_profile = {
    form: 'list',
    list: [
        'cybookg3',
        'cybook_opus',
        'default',
        'hanlinv3',
        'hanlinv5',
        'illiad',
        'irexdr1000',
        'irexdr800',
        'kindle',
        'msreader',
        'mobipocket',
        'nook',
        'sony',
        'sony300',
        'sony900',
    ],
};
export const calibre_output_profile = {
    form: 'list',
    list: [
        'cybookg3',
        'cybook_opus',
        'default',
        'generic_eink',
        'generic_eink_hd',
        'generic_eink_large',
        'hanlinv3',
        'hanlinv5',
        'illiad',
        'ipad',
        'ipad3',
        'irexdr1000',
        'irexdr800',
        'jetbook5',
        'kindle',
        'kindle_dx',
        'kindle_fire',
        'kindle_oasis',
        'kindle_pw',
        'kindle_pw3',
        'kindle_voyage',
        'kobo',
        'msreader',
        'mobipocket',
        'nook',
        'nook_color',
        'nook_hd_plus',
        'pocketbook_900',
        'pocketbook_pro_912',
        'galaxy',
        'sony',
        'sony300',
        'sony900',
        'sony-landscape',
        'sonyt3',
        'tablet',
    ],
};
// https://manpages.ubuntu.com/manpages/bionic/man1/ebook-convert.1.html
export const build_command_to_generate_latex_pdf = {
    form: 'form',
    link: {
        input: {
            link: {
                file: {
                    link: {
                        path: { like: 'string' },
                    },
                },
            },
        },
        output: {
            link: {
                directory: { like: 'string' },
                file: {
                    link: {
                        name: { like: 'string' },
                    },
                },
            },
        },
    },
};
export const build_command_to_convert_document_with_calibre = {
    form: 'form',
    link: {
        input: {
            link: {
                file: {
                    link: {
                        path: { like: 'string' },
                    },
                },
            },
        },
        output: {
            link: {
                file: {
                    link: {
                        path: { like: 'string' },
                        format: { like: 'string', need: false },
                    },
                },
            },
        },
    },
};
export const build_command_to_convert_document_with_libre_office = {
    form: 'form',
    link: {
        input: {
            link: {
                file: {
                    link: {
                        path: { like: 'string' },
                    },
                },
            },
        },
        output: {
            link: {
                file: {
                    link: {
                        format: { like: 'string' },
                    },
                },
                directory: {
                    link: {
                        path: { like: 'string' },
                    },
                },
            },
        },
    },
};
export const build_command_to_convert_document_with_jupyter = {
    form: 'form',
    link: {
        input: {
            link: {
                file: {
                    link: {
                        path: { like: 'string' },
                    },
                },
            },
        },
        output: {
            link: {
                file: {
                    link: {
                        format: { like: 'string' },
                    },
                },
                format: {
                    like: 'string',
                },
            },
        },
    },
};
export const slice_pdf_using_bytes = {
    form: 'form',
    link: {
        input: {
            link: {
                file: {
                    link: {
                        buffer: { like: 'ArrayBuffer' },
                    },
                },
            },
        },
        startPage: { like: 'natural_number' },
        endPage: { like: 'natural_number' },
        output: {
            link: {
                file: {
                    link: {
                        buffer: { like: 'ArrayBuffer' },
                    },
                },
            },
        },
    },
};
export const check_if_pdf_is_valid = {
    form: 'form',
    link: {
        input: {
            link: {
                file: {
                    link: {
                        buffer: { like: 'ArrayBuffer' },
                    },
                },
            },
        },
    },
};
export const slice_pdf = {
    form: 'form',
    link: {
        input: {
            link: {
                file: {
                    link: {
                        path: { like: 'string', name: { mark: 'i' } },
                    },
                },
            },
        },
        startPage: { like: 'natural_number', name: { mark: 'S' } },
        endPage: { like: 'natural_number', name: { mark: 'E' } },
        output: {
            link: {
                file: {
                    link: {
                        path: { like: 'string', name: { mark: 'o' } },
                    },
                },
            },
        },
    },
};
export const sanitize_html_from_content = {
    form: 'form',
    link: {
        input: {
            link: {
                content: { like: 'string' },
            },
        },
    },
};
//# sourceMappingURL=document.js.map