You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/fastn/ftd/src/js
    
    the code of the file until where you have to start completion: #![allow(dead_code)]

#[cfg(test)]
#[macro_use]
mod ftd_test_helpers;
mod element;
mod resolver;
mod utils;
mod value;

pub use element::{Common, Element};
pub use resolver::ResolverData;
pub use value::Value;

pub const CODE_DEFAULT_THEME: &str = "fastn-theme.dark";

pub fn all_js_without_test(package_name: &str) -> Str
    
pub fn default_bag_into_js_ast() -> Vec<fastn_js::Ast> {
    let mut ftd_asts = vec![];
    let bag = ftd::interpreter::default::get_default_bag();
    let doc = ftd::interpreter::TDoc {
        name: "",
        aliases: &ftd::interpreter::default::default_aliases(),
        bag: ftd::interpreter::BagOrState::Bag(bag),
    };
    let mut export_asts = vec![];
    for thing in ftd::interpreter::default::get_default_bag().values() {
        if let ftd::interpreter::Thing::Variable(v) = thing {
            ftd_asts.push(v.to_ast(&doc, None, &mut false));
        } else if let ftd::interpreter::Thing::Function(f) = thing {
            if f.external_implementation {
                continue;
            }
            ftd_asts.push(f.to_ast(&doc));
        } else if let ftd::interpreter::Thing::Export { from, to, .. } = thing {
            export_asts.push(fastn_js::Ast::Export {
                from: from.to_string(),
                to: to.to_string(),
            })
        }
    }

    // Global default inherited variable
    ftd_asts.push(fastn_js::Ast::StaticVariable(fastn_js::StaticVariable {
        name: "inherited".to_string(),
        value: fastn_js::SetPropertyValue::Value(fastn_js::Value::Record {
            fields: vec![
                (
                    "colors".to_string(),
                    fastn_js::SetPropertyValue::Reference(
                        "ftd#default-colors__DOT__getClone()__DOT__setAndReturn\
                        (\"is_root\"__COMMA__\
                         true)"
                            .to_string(),
                    ),
                ),
                (
                    "types".to_string(),
                    fastn_js::SetPropertyValue::Reference(
                        "ftd#default-types__DOT__getClone()__DOT__setAndReturn\
                        (\"is_root\"__COMMA__\
                         true)"
                            .to_string(),
                    ),
                ),
            ],
            other_references: vec![],
        }),
        prefix: None,
    }));

    ftd_asts.extend(export_asts);
    ftd_asts
}