1 | import { type MergeExclusive } from "../typings/index.js";
|
2 | import { type AdvancedOptions, type ReturnTypeFunc, type SubscriptionFilterFunc, type SubscriptionSubscribeFunc, type SubscriptionTopicIdFunc, type SubscriptionTopicsFunc } from "./types.js";
|
3 | interface PubSubOptions {
|
4 | topics: string | string[] | SubscriptionTopicsFunc;
|
5 | topicId?: SubscriptionTopicIdFunc | undefined;
|
6 | filter?: SubscriptionFilterFunc;
|
7 | }
|
8 | interface SubscribeOptions {
|
9 | subscribe: SubscriptionSubscribeFunc;
|
10 | }
|
11 | export type SubscriptionOptions = AdvancedOptions & MergeExclusive<PubSubOptions, SubscribeOptions>;
|
12 | export declare function Subscription(options: SubscriptionOptions): MethodDecorator;
|
13 | export declare function Subscription(returnTypeFunc: ReturnTypeFunc, options: SubscriptionOptions): MethodDecorator;
|
14 | export {};
|