import type { Bucket } from "../bucket.js"; import type { Entity } from "../entity/entity.js"; import type { Event } from "../event.js"; import type { AnyCommand } from "../http/command.js"; import type { Queue } from "../queue.js"; import type { SearchIndex } from "../search/search-index.js"; import type { Socket } from "../socket/socket.js"; import type { Subscription } from "../subscription.js"; import type { Task } from "../task.js"; import type { Transaction } from "../transaction.js"; import type { Workflow } from "../workflow.js"; type Resource = AnyCommand | Bucket | Entity | Event | Queue | SearchIndex | Socket | Subscription | Task | Transaction | Workflow; type ResourceKind = Resource["kind"]; type ResourceOfKind = Resource & { kind: Kind; }; type ResourceCollection = { [kind in ResourceKind]?: Map>; }; declare global { var _eventual: { resources: ResourceCollection; }; } export declare function registerEventualResource>(resourceKind: Kind, resource: T): T; export declare function getEventualResource(resourceKind: Kind, name: string): ResourceOfKind | undefined; export declare function getEventualResources(resourceKind: Kind): Map>; export {}; //# sourceMappingURL=resources.d.ts.map