import { A as ActivityInterface, C as CommitmentInterface, h as LocationInterface, M as MapInterface, Q as QuestInterface, R as RoomInterface } from './StageInterface-BN_O8nDA.mjs'; import { CachedMap } from '@drincs/pixi-vn'; import '@drincs/pixi-vn/storage'; import '@drincs/nqtr/registries'; interface NqtrActivityIds { } interface NqtrCommitmentIds { } interface NqtrLocationIds { } interface NqtrMapIds { } interface NqtrQuestIds { } interface NqtrRoomIds { } /** * The type used wherever an activity ID is expected. * * - **Default** — resolves to `string` so that existing code compiles without changes. * - **Augmented** — when {@link NqtrActivityIds} has been extended via * `declare module "@drincs/nqtr/registries"`, resolves to the union of known activity IDs. * * @example * ```ts * // nqtr.gen.d.ts (auto-generated by vitePluginNqtr) * declare module "@drincs/nqtr/registries" { * interface NqtrActivityIds { "study": never; "cook": never; } * } * ``` */ type ActivityIdType = [keyof NqtrActivityIds] extends [never] ? string : keyof NqtrActivityIds; /** * The type used wherever a commitment ID is expected. * * - **Default** — resolves to `string`. * - **Augmented** — resolves to the union of known commitment IDs once * {@link NqtrCommitmentIds} has been extended. */ type CommitmentIdType = [keyof NqtrCommitmentIds] extends [never] ? string : keyof NqtrCommitmentIds; /** * The type used wherever a location ID is expected. * * - **Default** — resolves to `string`. * - **Augmented** — resolves to the union of known location IDs once * {@link NqtrLocationIds} has been extended. */ type LocationIdType = [keyof NqtrLocationIds] extends [never] ? string : keyof NqtrLocationIds; /** * The type used wherever a map ID is expected. * * - **Default** — resolves to `string`. * - **Augmented** — resolves to the union of known map IDs once * {@link NqtrMapIds} has been extended. */ type MapIdType = [keyof NqtrMapIds] extends [never] ? string : keyof NqtrMapIds; /** * The type used wherever a quest ID is expected. * * - **Default** — resolves to `string`. * - **Augmented** — resolves to the union of known quest IDs once * {@link NqtrQuestIds} has been extended. */ type QuestIdType = [keyof NqtrQuestIds] extends [never] ? string : keyof NqtrQuestIds; /** * The type used wherever a room ID is expected. * * - **Default** — resolves to `string`. * - **Augmented** — resolves to the union of known room IDs once * {@link NqtrRoomIds} has been extended. * * @example * ```ts * import type { RoomIdType } from "@drincs/nqtr/registries"; * * function navigateTo(roomId: RoomIdType) { ... } * navigateTo("bedroom"); // ✅ compile error if "bedroom" is not a known room * ``` */ type RoomIdType = [keyof NqtrRoomIds] extends [never] ? string : keyof NqtrRoomIds; /** * A Map that contains all activities registered and available to be used. * The key is the id of the activity and the value is the activity itself. */ declare const registeredActivities: CachedMap; declare namespace RegisteredActivities { /** * Save an activity in the registered activities. If the activity already exists, it will be overwritten. * @param activities The activity to save. * @returns */ function add(...activities: (ActivityInterface | ActivityInterface[])[]): void; /** * Get an activity by its id. * @param id The id of the activity. * @returns The activity or undefined if not found. */ function get(id: string): ActivityInterface | undefined; /** * Get a list of all activities registered. * @returns An array of activities. */ function values(): ActivityInterface[]; /** * Check if an activity is registered. * @param id The id of the activity. * @returns True if the activity is registered, false otherwise. */ function has(id: string): boolean; /** * Remove all registered activities. * Primarily used by the Vite plugin to reset state between hot-module reloads. */ function clear(): void; } /** * A Map that contains all commitments registered and available to be used. * The key is the id of the commitment and the value is the commitment itself. */ declare const registeredCommitments: CachedMap; declare const fixedCommitments: CachedMap; declare namespace RegisteredCommitments { /** * Save a commitment in the registered commitments. If the commitment already exists, it will be overwritten. * @param commitments The commitment to save. * @returns */ function add(...commitments: (CommitmentInterface | CommitmentInterface[])[]): void; /** * Get a commitment by its id. * @param id The id of the commitment. * @returns The commitment or undefined if not found. */ function get(id: string): CommitmentInterface | undefined; /** * Get a list of all commitments registered. * @returns An array of commitments. */ function values(): CommitmentInterface[]; /** * Check if a commitment is registered. * @param id The id of the commitment. * @returns True if the commitment is registered, false otherwise. */ function has(id: string): boolean; /** * Remove all registered commitments (both scheduled and fixed). * Primarily used by the Vite plugin to reset state between hot-module reloads. */ function clear(): void; } /** * A Map that contains all locations registered and available to be used. * The key is the id of the location and the value is the location itself. */ declare const registeredLocations: CachedMap; declare namespace RegisteredLocations { /** * Save a location in the registered locations. If the location already exists, it will be overwritten. * @param locations The location to save. * @returns */ function add(...locations: (LocationInterface | LocationInterface[])[]): void; /** * Get a location by its id. * @param id The id of the location. * @returns The location or undefined if not found. */ function get(id: string): LocationInterface | undefined; /** * Get a list of all locations registered. * @returns An array of locations. */ function values(): LocationInterface[]; /** * Check if a location is registered. * @param id The id of the location. * @returns True if the location is registered, false otherwise. */ function has(id: string): boolean; /** * Remove all registered locations. * Primarily used by the Vite plugin to reset state between hot-module reloads. */ function clear(): void; } /** * A Map that contains all maps registered and available to be used. * The key is the id of the map and the value is the map itself. */ declare const registeredMaps: CachedMap; declare namespace RegisteredMaps { /** * Save a map in the registered maps. If the map already exists, it will be overwritten. * @param maps The map to save. * @returns */ function add(...maps: (MapInterface | MapInterface[])[]): void; /** * Get a map by its id. * @param id The id of the map. * @returns The map or undefined if not found. */ function get(id: string): MapInterface | undefined; /** * Get a list of all maps registered. * @returns An array of maps. */ function values(): MapInterface[]; /** * Check if a map is registered. * @param id The id of the map. * @returns True if the map is registered, false otherwise. */ function has(id: string): boolean; /** * Remove all registered maps. * Primarily used by the Vite plugin to reset state between hot-module reloads. */ function clear(): void; } /** * A Map that contains all quests registered and available to be used. * The key is the id of the quest and the value is the quest itself. */ declare const registeredQuests: CachedMap; declare namespace RegisteredQuest { /** * Save a quest in the registered quests. If the quest already exists, it will be overwritten. * @param quests The quest to save. * @returns */ function add(...quests: (QuestInterface | QuestInterface[])[]): void; /** * Get a quest by its id. * @param id The id of the quest. * @returns The quest or undefined if not found. */ function get(id: string): QuestInterface | undefined; /** * Get a list of all quests registered. * @returns An array of quests. */ function values(): QuestInterface[]; /** * Check if a quest is registered. * @param id The id of the quest. * @returns True if the quest is registered, false otherwise. */ function has(id: string): boolean; /** * Remove all registered quests. * Primarily used by the Vite plugin to reset state between hot-module reloads. */ function clear(): void; } /** * A Map that contains all rooms registered and available to be used. * The key is the id of the room and the value is the room itself. */ declare const registeredRooms: CachedMap; declare namespace RegisteredRooms { /** * Save a room in the registered rooms, and their location and map if they are not already registered. * If the room already exists, it will be overwritten. * @param rooms The room to save. * @returns */ function add(...rooms: (RoomInterface | RoomInterface[])[]): void; /** * Get a room by its id. * @param id The id of the room. * @returns The room or undefined if not found. */ function get(id: string): RoomInterface | undefined; /** * Get a list of all rooms registered. * @returns An array of rooms. */ function values(): RoomInterface[]; /** * Check if a room is registered. * @param id The id of the room. * @returns True if the room is registered, false otherwise. */ function has(id: string): boolean; /** * Remove all registered rooms. * Primarily used by the Vite plugin to reset state between hot-module reloads. */ function clear(): void; } export { type ActivityIdType, type CommitmentIdType, type LocationIdType, type MapIdType, type NqtrActivityIds, type NqtrCommitmentIds, type NqtrLocationIds, type NqtrMapIds, type NqtrQuestIds, type NqtrRoomIds, type QuestIdType, RegisteredActivities, RegisteredCommitments, RegisteredLocations, RegisteredMaps, RegisteredQuest as RegisteredQuests, RegisteredRooms, type RoomIdType, fixedCommitments, registeredActivities, registeredCommitments, registeredLocations, registeredMaps, registeredQuests, registeredRooms };