import type { Database } from "@prodobit/database"; export interface CreateTenantData { name: string; subscriptionPlan?: string; settings?: Record; } export interface TenantFilters { page?: number; limit?: number; status?: string; } export declare class TenantService { private db; constructor(db: Database); /** * Get all tenants with pagination */ getTenants(filters?: TenantFilters): Promise<{ data: { id: string; name: string; slug: string | null; subdomain: string | null; description: string | null; industry: string | null; status: string; subscriptionPlan: string; settings: unknown; insertedAt: Date; updatedAt: Date; deletedAt: Date | null; }[]; pagination: { page: number; limit: number; total: number; totalPages: number; }; }>; /** * Get tenant by ID */ getTenantById(id: string): Promise<{ id: string; name: string; slug: string | null; subdomain: string | null; description: string | null; industry: string | null; status: string; subscriptionPlan: string; settings: unknown; insertedAt: Date; updatedAt: Date; deletedAt: Date | null; }>; /** * Create new tenant */ createTenant(data: CreateTenantData): Promise<{ id: string; name: string; slug: string | null; subdomain: string | null; description: string | null; industry: string | null; status: string; subscriptionPlan: string; settings: unknown; insertedAt: Date; updatedAt: Date; deletedAt: Date | null; }>; /** * Update tenant */ updateTenant(id: string, data: Partial): Promise<{ id: string; name: string; slug: string | null; subdomain: string | null; description: string | null; industry: string | null; status: string; subscriptionPlan: string; settings: unknown; insertedAt: Date; updatedAt: Date; deletedAt: Date | null; }>; /** * Delete tenant (soft delete) */ deleteTenant(id: string): Promise<{ id: string; name: string; slug: string | null; subdomain: string | null; description: string | null; industry: string | null; status: string; subscriptionPlan: string; settings: unknown; insertedAt: Date; updatedAt: Date; deletedAt: Date | null; }>; /** * Check if tenant exists and is active */ isActiveTenant(id: string): Promise; } //# sourceMappingURL=tenant-service.d.ts.map