blob: 5d51039a561b1d8a9a226df41a1d8a093615034d [file] [edit]
// Copyright (C) 2026 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import {PerfettoWasmModule} from './perfetto_wasm_module';
// Type shim for the emcc-emitted 'traceconv' wasm glue. The runtime path is
// resolved by Vite (alias 'src/wasm/*' -> 'src/gen/*') to the actual .js
// file in the gen dir; tsc resolves this .d.ts and never reads the .js.
// Our emcc build uses WASM_ASYNC_COMPILATION=0, so the factory returns the
// Module synchronously — not Promise<Module> as @types/emscripten's
// EmscriptenModuleFactory would suggest.
declare const factory: (opts?: Partial<PerfettoWasmModule>) => PerfettoWasmModule;
export default factory;