import { type AdditionalDataHolder, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {StatisticsGetResponse_countryViewCounts} */ export declare function createStatisticsGetResponse_countryViewCountsFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {StatisticsGetResponse_countryWatchTime} */ export declare function createStatisticsGetResponse_countryWatchTimeFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {StatisticsGetResponse_viewsChart} */ export declare function createStatisticsGetResponse_viewsChartFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {StatisticsGetResponse_watchTimeChart} */ export declare function createStatisticsGetResponse_watchTimeChartFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {StatisticsGetResponse} */ export declare function createStatisticsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoStatisticsGetResponse(statisticsGetResponse?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoStatisticsGetResponse_countryViewCounts(statisticsGetResponse_countryViewCounts?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoStatisticsGetResponse_countryWatchTime(statisticsGetResponse_countryWatchTime?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoStatisticsGetResponse_viewsChart(statisticsGetResponse_viewsChart?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoStatisticsGetResponse_watchTimeChart(statisticsGetResponse_watchTimeChart?: Partial | undefined): Record void>; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeStatisticsGetResponse(writer: SerializationWriter, statisticsGetResponse?: Partial | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeStatisticsGetResponse_countryViewCounts(writer: SerializationWriter, statisticsGetResponse_countryViewCounts?: Partial | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeStatisticsGetResponse_countryWatchTime(writer: SerializationWriter, statisticsGetResponse_countryWatchTime?: Partial | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeStatisticsGetResponse_viewsChart(writer: SerializationWriter, statisticsGetResponse_viewsChart?: Partial | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeStatisticsGetResponse_watchTimeChart(writer: SerializationWriter, statisticsGetResponse_watchTimeChart?: Partial | undefined | null): void; export interface StatisticsGetResponse extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record; /** * The countryViewCounts property */ countryViewCounts?: StatisticsGetResponse_countryViewCounts | null; /** * The countryWatchTime property */ countryWatchTime?: StatisticsGetResponse_countryWatchTime | null; /** * The engagementScore property */ engagementScore?: number | null; /** * The viewsChart property */ viewsChart?: StatisticsGetResponse_viewsChart | null; /** * The watchTimeChart property */ watchTimeChart?: StatisticsGetResponse_watchTimeChart | null; } export interface StatisticsGetResponse_countryViewCounts extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record; } export interface StatisticsGetResponse_countryWatchTime extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record; } export interface StatisticsGetResponse_viewsChart extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record; } export interface StatisticsGetResponse_watchTimeChart extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record; } /** * Builds and executes requests for operations under /library/{libraryId}/statistics */ export interface StatisticsRequestBuilder extends BaseRequestBuilder { /** * [GetVideoStatistics API Docs](https://docs.bunny.net/reference/video_getvideostatistics) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * [GetVideoStatistics API Docs](https://docs.bunny.net/reference/video_getvideostatistics) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * [GetVideoStatistics API Docs](https://docs.bunny.net/reference/video_getvideostatistics) */ export interface StatisticsRequestBuilderGetQueryParameters { /** * The start date of the statistics. If no value is passed, the last 30 days will be returned. */ dateFrom?: Date; /** * The end date of the statistics. If no value is passed, the last 30 days will be returned. */ dateTo?: Date; /** * If true, the statistics data will be returned in hourly grouping. */ hourly?: boolean; /** * The GUID of the video for which the statistics will be returned */ videoGuid?: string; } /** * Uri template for the request builder. */ export declare const StatisticsRequestBuilderUriTemplate = "{+baseurl}/library/{libraryId}/statistics{?dateFrom,dateTo,hourly,videoGuid}"; /** * Metadata for all the requests in the request builder. */ export declare const StatisticsRequestBuilderRequestsMetadata: RequestsMetadata;