## API Report File for "@backstage/version-bridge"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts
import { Context } from 'react';

// @public
export function createVersionedContext<
  Versions extends {
    [version in number]: unknown;
  },
>(key: string): Context<VersionedValue<Versions> | undefined>;

// @public
export function createVersionedContextForTesting(key: string): {
  set(versions: { [x: number]: unknown }): void;
  reset(): void;
};

// @public
export function createVersionedValueMap<
  Versions extends {
    [version: number]: unknown;
  },
>(versions: Versions): VersionedValue<Versions>;

// @public
export function getOrCreateGlobalSingleton<T>(id: string, supplier: () => T): T;

// @public
export function useVersionedContext<
  Versions extends {
    [version in number]: unknown;
  },
>(key: string): VersionedValue<Versions> | undefined;

// @public
export type VersionedValue<
  Versions extends {
    [version: number]: unknown;
  },
> = {
  atVersion<Version extends keyof Versions>(
    version: Version,
  ): Versions[Version] | undefined;
};
```
