import { type ChatMessageInfo } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
 * Provides operations to manage the lastMessagePreview property of the microsoft.graph.chat entity.
 */
export interface LastMessagePreviewRequestBuilder extends BaseRequestBuilder<LastMessagePreviewRequestBuilder> {
    /**
     * Delete navigation property lastMessagePreview for users
     * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
     * @throws {ODataError} error when the service returns a 4XX or 5XX status code
     */
    delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
    /**
     * Preview of the last message sent in the chat. Null if no messages are sent in the chat. Currently, only the list chats operation supports this property.
     * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
     * @returns {Promise<ChatMessageInfo>}
     * @throws {ODataError} error when the service returns a 4XX or 5XX status code
     */
    get(requestConfiguration?: RequestConfiguration<LastMessagePreviewRequestBuilderGetQueryParameters> | undefined): Promise<ChatMessageInfo | undefined>;
    /**
     * Update the navigation property lastMessagePreview in users
     * @param body The request body
     * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
     * @returns {Promise<ChatMessageInfo>}
     * @throws {ODataError} error when the service returns a 4XX or 5XX status code
     */
    patch(body: ChatMessageInfo, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ChatMessageInfo | undefined>;
    /**
     * Delete navigation property lastMessagePreview for users
     * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
     * @returns {RequestInformation}
     */
    toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
    /**
     * Preview of the last message sent in the chat. Null if no messages are sent in the chat. Currently, only the list chats operation supports this property.
     * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
     * @returns {RequestInformation}
     */
    toGetRequestInformation(requestConfiguration?: RequestConfiguration<LastMessagePreviewRequestBuilderGetQueryParameters> | undefined): RequestInformation;
    /**
     * Update the navigation property lastMessagePreview in users
     * @param body The request body
     * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
     * @returns {RequestInformation}
     */
    toPatchRequestInformation(body: ChatMessageInfo, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
 * Preview of the last message sent in the chat. Null if no messages are sent in the chat. Currently, only the list chats operation supports this property.
 */
export interface LastMessagePreviewRequestBuilderGetQueryParameters {
    /**
     * Expand related entities
     */
    expand?: string[];
    /**
     * Select properties to be returned
     */
    select?: string[];
}
/**
 * Uri template for the request builder.
 */
export declare const LastMessagePreviewRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/lastMessagePreview{?%24expand,%24select}";
/**
 * Metadata for all the requests in the request builder.
 */
export declare const LastMessagePreviewRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map