Modified export so it's easier to inline as a source file into a TypeScript project