export interface ResolveNpmPackageOptions {
    /** Anchor directory to search from (typically the caller's cwd). */
    cwd?: string;
    /**
     * Bundle path or module URL to anchor the bundle-side createRequire
     * at. Pass `import.meta.url` from the call site so the bundle's
     * own node_modules chain stays reachable even when the CLI is
     * invoked from an unrelated cwd.
     */
    bundleUrl?: string;
}
/**
 * Resolve a bare npm specifier through multiple createRequire anchors.
 * Returns the absolute filesystem path of the resolved module, or null
 * if no anchor succeeded.
 *
 * Each anchor is tried in priority order — `GJSIFY_NODE_PATH` (highest)
 * → caller cwd → workspace root → bundle URL → parent-dir walk from
 * cwd. The first anchor whose `require.resolve()` succeeds wins.
 */
export declare function resolveNpmPackage(specifier: string, opts?: ResolveNpmPackageOptions): string | null;
