import { SmrtCollection } from '@happyvertical/smrt-core'; import { TenantSubscription } from '../models/TenantSubscription.js'; import { Subscriber } from '../types.js'; export declare class TenantSubscriptionCollection extends SmrtCollection { static readonly _itemClass: typeof TenantSubscription; /** * List subscriptions whose owning tenant scope is `tenantId`. Includes both * `'tenant'`-kind (subscriber == owner) and `'external'`-kind (subscriber is * an external identity scoped under this tenant) rows. */ findByTenant(tenantId: string): Promise; /** * Legacy single-tenant accessor: returns the current subscription where the * tenant IS the subscriber (`subscriberKind = 'tenant'`). External-kind rows * scoped under this tenant are intentionally excluded so existing callers * are not surprised by buyer/agent subscriptions. */ findCurrentForTenant(tenantId: string, now?: Date): Promise; /** * Polymorphic current-subscription accessor. * * For `'tenant'` subscribers we match rows with `subscriberKind = 'tenant'` * under the same `tenantId`. For `'external'` subscribers we match by * `(tenantId, subscriberExternalId)` with `subscriberKind = 'external'`. */ findCurrentForSubscriber(subscriber: Subscriber, now?: Date): Promise; findByStripeSubscriptionId(stripeSubscriptionId: string): Promise; } //# sourceMappingURL=TenantSubscriptionCollection.d.ts.map