/** * ESM resolve hook: when a relative/absolute `.js` specifier fails and a * sibling `.ts` / `.tsx` exists, rewrite to that source file. * * Needed for Plugin Runtime on Node 22.6–22.17 with `--experimental-strip-types`: * TypeScript authoring uses `.js` import suffixes, but strip-types does not * remap missing `.js` → `.ts` the way `tsc`/tsx do. */ export declare function resolve(specifier: string, context: { parentURL?: string; }, nextResolve: (specifier: string, context: { parentURL?: string; }) => Promise<{ url: string; shortCircuit?: boolean; format?: string; }>): Promise<{ url: string; shortCircuit?: boolean; format?: string; }>; /** Register once for the current process (safe to call from CLI / RootHost). */ export declare function ensureTypeScriptSpecifierRemap(): void;