import * as plugins from '../plugins.js'; type TCoreMailSubmission = plugins.servezoneInterfaces.data.ICoreMailSubmission; type TCoreMailDelivery = plugins.servezoneInterfaces.data.ICoreMailInboundDelivery; export interface ISzCoreMailConnectorOptions { endpointUrl: string; bindingId: string; credentialId: string; credentialVersion: number; credentialSecret: string; } export interface ISzCoreMailUploadPartOptions { submissionId: string; part: plugins.servezoneInterfaces.data.ICoreMailContentDescriptor; bytes: Uint8Array; } export interface ISzCoreMailInboundFetchResult { delivery: TCoreMailDelivery; bytes: Uint8Array; } export declare class SzCoreMailConnector { private options?; private stopped; private generation; private connection?; private pendingConnection?; private readonly stopController; private readonly activeOperations; private stopPromise?; get isConfigured(): boolean; configure(optionsArg: ISzCoreMailConnectorOptions): void; init(): Promise; prepareOutboundSubmission(requestArg: plugins.servezoneInterfaces.requests.coremail.IReq_CoreMailPrepareOutboundSubmission['request']): Promise; uploadOutboundPart(optionsArg: ISzCoreMailUploadPartOptions): Promise; finalizeOutboundSubmission(submissionIdArg: string): Promise; getOutboundSubmission(submissionIdArg: string): Promise; listInboundDeliveries(requestArg: plugins.servezoneInterfaces.requests.coremail.IReq_CoreMailListInboundDeliveries['request']): Promise; fetchInboundDelivery(deliveryArg: TCoreMailDelivery): Promise; acknowledgeInboundDelivery(requestArg: plugins.servezoneInterfaces.requests.coremail.IReq_CoreMailAcknowledgeInboundDelivery['request']): Promise; stop(): Promise; private normalizeOptions; private optionsEqual; private requireOptions; private getAuthenticatedConnection; private connectAndAuthenticate; private createSocket; private normalizeAuthenticationResponse; private normalizeTransferOrigin; private fire; private prepareUploadGrant; private uploadOutboundPartInner; private assertUploadGrantContext; private putTransfer; private putTransferInner; private fetchInboundDeliveryInner; private assertDownloadGrantContext; private getTransfer; private getTransferInner; private completeInboundFetchWithRetry; private resolveTransferUrl; private createSha256; private copyBytesToArrayBuffer; private fetchTransfer; private createTransferDeadline; private hasCoreMailErrorCode; private waitForDelay; private invalidateConnection; private assertGeneration; private trackOperation; private stopInner; private createAbortError; } export {};