@plurid/plurid-engine
Version:
Plurid Engine and Utility Functions
15 lines (14 loc) • 644 B
TypeScript
import { PluridPlane, RegisteredPluridPlane, PluridPlanesRegistrar as IPluridPlanesRegistrar } from '@plurid/plurid-data';
/**
* The planes registrar can be stored in-memory (server-side)
* or on the `window.__pluridPlanesRegistrar__` object (browser-side).
*/
declare class PluridPlanesRegistrar<C> implements IPluridPlanesRegistrar<C> {
private isoMatcher;
constructor(planes?: PluridPlane<C>[], origin?: string);
register(planes: PluridPlane<C>[]): void;
identify(): string[];
get(route: string): RegisteredPluridPlane<C> | undefined;
getAll(): Map<any, any>;
}
export default PluridPlanesRegistrar;