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_QueriesByTypeChart} */ export declare function createStatisticsGetResponse_QueriesByTypeChartFromDiscriminatorValue(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_QueriesServedChart} */ export declare function createStatisticsGetResponse_QueriesServedChartFromDiscriminatorValue(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_QueriesByTypeChart(statisticsGetResponse_QueriesByTypeChart?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoStatisticsGetResponse_QueriesServedChart(statisticsGetResponse_QueriesServedChart?: 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_QueriesByTypeChart(writer: SerializationWriter, statisticsGetResponse_QueriesByTypeChart?: Partial | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeStatisticsGetResponse_QueriesServedChart(writer: SerializationWriter, statisticsGetResponse_QueriesServedChart?: 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 QueriesByTypeChart property */ queriesByTypeChart?: StatisticsGetResponse_QueriesByTypeChart | null; /** * The QueriesServedChart property */ queriesServedChart?: StatisticsGetResponse_QueriesServedChart | null; /** * The TotalQueriesServed property */ totalQueriesServed?: number | null; } export interface StatisticsGetResponse_QueriesByTypeChart 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_QueriesServedChart 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 /dnszone/{-id}/statistics */ export interface StatisticsRequestBuilder extends BaseRequestBuilder { /** * [GetDnsQueryStatistics API Docs](https://docs.bunny.net/reference/dnszonepublic_statistics) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * [GetDnsQueryStatistics API Docs](https://docs.bunny.net/reference/dnszonepublic_statistics) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * [GetDnsQueryStatistics API Docs](https://docs.bunny.net/reference/dnszonepublic_statistics) */ 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; } /** * Uri template for the request builder. */ export declare const StatisticsRequestBuilderUriTemplate = "{+baseurl}/dnszone/{%2Did}/statistics{?dateFrom,dateTo}"; /** * Metadata for all the requests in the request builder. */ export declare const StatisticsRequestBuilderRequestsMetadata: RequestsMetadata;