import { IndexMap } from '../../shared/index-map.js';
import type { JsFnHandle, Worklet } from '../../worklet-runtime/bindings/types.js';
/**
 * Keeps the background-thread worklet ctx alive while main thread still holds
 * a handle to one of its background functions.
 */
export declare class BackgroundFunctionExecMap extends IndexMap<Worklet> {
    add(worklet: Worklet): number;
    findJsFnHandle(execId: number, fnId: number): JsFnHandle | undefined;
    private findJsFnHandleInValue;
}
