interface Foo { export(): string; } var f: Foo; var x = f.export();