## API Report File for "@microsoft/applicationinsights-channel-js"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts

import { BaseTelemetryPlugin } from '@microsoft/applicationinsights-core-js';
import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
import { IChannelControlsAI } from '@microsoft/applicationinsights-common';
import { IConfig } from '@microsoft/applicationinsights-common';
import { IConfiguration } from '@microsoft/applicationinsights-core-js';
import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
import { IEnvelope } from '@microsoft/applicationinsights-common';
import { IPlugin } from '@microsoft/applicationinsights-core-js';
import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
import { ISample } from '@microsoft/applicationinsights-common';
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
import { ITelemetryPluginChain } from '@microsoft/applicationinsights-core-js';
import { SendRequestReason } from '@microsoft/applicationinsights-core-js';

// @public (undocumented)
export class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
    constructor();
    addHeader(name: string, value: string): void;
    _appId: string;
    // Warning: (ae-forgotten-export) The symbol "ISendBuffer" needs to be exported by the entry point applicationinsights-channel-js.d.ts
    _buffer: ISendBuffer;
    // (undocumented)
    static constructEnvelope(orig: ITelemetryItem, iKey: string, logger: IDiagnosticLogger): IEnvelope;
    // (undocumented)
    flush(): void;
    // (undocumented)
    identifier: string;
    // (undocumented)
    initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
    _onError(payload: string[], message: string, event?: ErrorEvent): void;
    // Warning: (ae-forgotten-export) The symbol "IBackendResponse" needs to be exported by the entry point applicationinsights-channel-js.d.ts
    _onPartialSuccess(payload: string[], results: IBackendResponse): void;
    _onSuccess(payload: string[], countOfItemsInPayload: number): void;
    // (undocumented)
    onunloadFlush(): void;
    // (undocumented)
    pause(): void;
    // (undocumented)
    priority: number;
    // (undocumented)
    processTelemetry(telemetryItem: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
    // (undocumented)
    resume(): void;
    // Warning: (ae-forgotten-export) The symbol "Sample" needs to be exported by the entry point applicationinsights-channel-js.d.ts
    //
    // (undocumented)
    protected _sample: Sample;
    // Warning: (ae-forgotten-export) The symbol "SenderFunction" needs to be exported by the entry point applicationinsights-channel-js.d.ts
    _sender: SenderFunction;
    // Warning: (ae-forgotten-export) The symbol "ISenderConfig" needs to be exported by the entry point applicationinsights-channel-js.d.ts
    _senderConfig: ISenderConfig;
    // (undocumented)
    teardown(): void;
    triggerSend(async?: boolean, forcedSender?: SenderFunction, sendReason?: SendRequestReason): void;
    // Warning: (ae-forgotten-export) The symbol "XDomainRequest" needs to be exported by the entry point applicationinsights-channel-js.d.ts
    _xdrOnLoad(xdr: XDomainRequest, payload: string[]): void;
    _xhrReadyStateChange(xhr: XMLHttpRequest, payload: string[], countOfItemsInPayload: number): void;
    _XMLHttpRequestSupported: boolean;
}


// (No @packageDocumentation comment for this package)

```
