import * as plugins from '../plugins.js'; import type { IWorkAppMailInboundRoute, IWorkAppMailOwnership } from '../../dist_ts_interfaces/data/workhoster.js'; import type { TGatewayClientType } from '../../dist_ts_interfaces/data/route-management.js'; export interface IStoredWorkAppMailIdentity { id: string; externalKey: string; ownership: IWorkAppMailOwnership; address: string; localPart: string; domain: string; enabled: boolean; displayName?: string; inbound?: IWorkAppMailInboundRoute; inboundTarget?: plugins.servezoneInterfaces.data.IMailInboundTarget; smtp: { enabled: boolean; username: string; }; createdAt: number; updatedAt: number; createdBy: string; smtpPassword: string; smtpLastRotatedAt?: number; } export interface IGatewayMailDomainOwner { gatewayClientType: TGatewayClientType; gatewayClientId: string; } export interface IGatewayMailDomainGroup extends IGatewayMailDomainOwner { id: string; domain: string; identities: IStoredWorkAppMailIdentity[]; } export declare function normalizeGatewayMailDomain(domainArg: unknown): string; export declare function normalizeGatewayMailDomainOwner(ownerArg: { gatewayClientType?: unknown; gatewayClientId?: unknown; }): IGatewayMailDomainOwner; export declare function gatewayMailOwnerFromLegacyOwnership(ownershipArg: IWorkAppMailOwnership): IGatewayMailDomainOwner & { appInstanceId: string; }; export declare function createGatewayMailDomainId(ownerArg: IGatewayMailDomainOwner, domainArg: string): string; export declare function normalizeStoredWorkAppMailIdentity(identityArg: unknown): IStoredWorkAppMailIdentity; export declare function groupGatewayMailIdentities(identitiesArg: unknown[]): IGatewayMailDomainGroup[];