import { type StructuredSuccessResponse } from '../../../../models/index.js'; 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 {FetchPostRequestBody_headers} */ export declare function createFetchPostRequestBody_headersFromDiscriminatorValue(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 {FetchPostRequestBody} */ export declare function createFetchPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoFetchPostRequestBody(fetchPostRequestBody?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoFetchPostRequestBody_headers(fetchPostRequestBody_headers?: Partial | undefined): Record void>; export interface FetchPostRequestBody 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 headers that will be sent along with the fetch request. */ headers?: FetchPostRequestBody_headers | null; /** * The title that will be set to video. */ title?: string | null; /** * The URL from which the video will be fetched from. */ url?: string | null; } /** * The headers that will be sent along with the fetch request. */ export interface FetchPostRequestBody_headers 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}/videos/fetch */ export interface FetchRequestBuilder extends BaseRequestBuilder { /** * [FetchVideo API Docs](https://docs.bunny.net/reference/video_fetchnewvideo) * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ post(body: FetchPostRequestBody, requestConfiguration?: RequestConfiguration | undefined): Promise; /** * [FetchVideo API Docs](https://docs.bunny.net/reference/video_fetchnewvideo) * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: FetchPostRequestBody, requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * [FetchVideo API Docs](https://docs.bunny.net/reference/video_fetchnewvideo) */ export interface FetchRequestBuilderPostQueryParameters { collectionId?: string; /** * Video time in ms to extract the main video thumbnail. */ thumbnailTime?: number; } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeFetchPostRequestBody(writer: SerializationWriter, fetchPostRequestBody?: Partial | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeFetchPostRequestBody_headers(writer: SerializationWriter, fetchPostRequestBody_headers?: Partial | undefined | null): void; /** * Uri template for the request builder. */ export declare const FetchRequestBuilderUriTemplate = "{+baseurl}/library/{libraryId}/videos/fetch{?collectionId,thumbnailTime}"; /** * Metadata for all the requests in the request builder. */ export declare const FetchRequestBuilderRequestsMetadata: RequestsMetadata;