import type { BlipClient } from '../client.ts'; import type { Tenant } from '../types/account.ts'; import { type Identity, type PossiblyNode } from '../types/node.ts'; import type { Application, ApplicationUserInfo, TenantAgentInfo, TenantSubscription, TenantUserInfo } from '../types/portal.ts'; import { type ConsumeOptions, Namespace, type SendCommandOptions } from './namespace.ts'; export declare class PortalNamespace extends Namespace { constructor(blipClient: BlipClient, defaultOptions?: SendCommandOptions); getInstalledPlugins(opts?: ConsumeOptions): Promise<{ id: string; name: string; url: string; }[]>; deletePlugin(id: string, opts?: ConsumeOptions): Promise; deletePlugin(url: string | RegExp, opts?: ConsumeOptions): Promise; addPlugin(id: string, settings: { name: string; url: string; }, opts?: ConsumeOptions): Promise; updatePlugin(id: string, settings: Partial<{ name: string; url: string; }>, opts?: ConsumeOptions): Promise; getApplication(bot?: PossiblyNode, opts?: ConsumeOptions): Promise; getApplications(tenantId: string, opts?: ConsumeOptions): Promise>; /** @returns all applications where the current user is an admin */ getAdminApplications(tenantId?: string, opts?: ConsumeOptions): Promise>; getParentApplications(): Promise>; getTenant(tenantId: string): Promise; getTenantActiveMessagesMetrics(tenantId: string, interval: 'D' | 'M' | 'NI', filters?: { applicationIdentity?: Identity; startDate?: Date | string; endDate?: Date | string; }, opts?: ConsumeOptions): Promise>; getTenantReceivedMessagesMetrics(tenantId: string, interval: 'D' | 'M' | 'NI', filters?: { applicationIdentity?: Identity; startDate?: Date | string; endDate?: Date | string; }, opts?: ConsumeOptions): Promise>; getTenantSentMessagesMetrics(tenantId: string, interval: 'D' | 'M' | 'NI', filters?: { applicationIdentity?: Identity; startDate?: Date | string; endDate?: Date | string; }, opts?: ConsumeOptions): Promise>; getTenantActiveUsersMetrics(tenantId: string, interval: 'D' | 'M' | 'NI', filters?: { applicationIdentity?: Identity; startDate?: Date | string; endDate?: Date | string; }, opts?: ConsumeOptions): Promise>; getTenantEngagedUsersMetrics(tenantId: string, interval: 'D' | 'M' | 'NI', filters?: { applicationIdentity?: Identity; startDate?: Date | string; endDate?: Date | string; }, opts?: ConsumeOptions): Promise>; tenantExists(tenantId: string): Promise; getTenants(opts?: ConsumeOptions): Promise>; getTenantUsers(tenantId: string, opts?: ConsumeOptions): Promise>>; getTenantUser(tenantId: string, user: Identity, opts?: ConsumeOptions): Promise; getTenantSubscription(tenantId: string, opts?: ConsumeOptions): Promise; deleteTenantUser(tenantId: string, user: Identity, opts?: ConsumeOptions): Promise; setTenantUser(tenantId: string, user: Identity, roleId: TenantUserInfo['roleId'], opts?: ConsumeOptions): Promise; getApplicationUsers(bot: PossiblyNode, opts?: ConsumeOptions): Promise>; getApplicationUser(bot: PossiblyNode, user: Identity, opts?: ConsumeOptions): Promise; deleteApplicationUser(bot: PossiblyNode, user: Identity, opts?: ConsumeOptions): Promise; setApplicationUser(bot: PossiblyNode, user: Identity, roleId: TenantUserInfo['roleId'], tenantId: string, opts?: ConsumeOptions): Promise; updateApplicationUserPermissions(bot: PossiblyNode, user: Identity, roleId: TenantUserInfo['roleId'], opts?: ConsumeOptions): Promise; getTenantAgents(tenantId: string, opts?: ConsumeOptions): Promise>; getTenantAgent(tenantId: string, agent: Identity, opts?: ConsumeOptions): Promise; setTenantAgent(tenantId: string, agents: Array, opts?: ConsumeOptions): Promise; deleteTenantAgent(tenantId: string, agent: Identity, opts?: ConsumeOptions): Promise; } //# sourceMappingURL=portal.d.ts.map