import { UseMutationOptions } from '@tanstack/react-query'; import type { MetadataResponseResponse } from '../responses/MetadataResponseResponse'; import type { BadRequestResponse } from '../responses/BadRequestResponse'; import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse'; import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse'; import type { NotFoundResponse } from '../responses/NotFoundResponse'; import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse'; import type { MetadataRequestRequestBody } from '../requestBodies/MetadataRequestRequestBody'; import type { ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface UpdateMetadataMutationQueryParams { account_identifier: string; } export type UpdateMetadataRequestBody = MetadataRequestRequestBody; export type UpdateMetadataOkResponse = ResponseWithPagination; export type UpdateMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse; export interface UpdateMetadataProps extends Omit, 'url'> { queryParams: UpdateMetadataMutationQueryParams; body: UpdateMetadataRequestBody; } export declare function updateMetadata(props: UpdateMetadataProps): Promise; /** * Creates new metadata or overwrites existing metadata key-value pairs for a specific entity. * This endpoint allows you to add new metadata or overwrites existing metadata for packages, versions, * or registry-level entities. * The operation supports both creating new metadata entries and updating existing ones in a single request. * */ export declare function useUpdateMetadataMutation(options?: Omit, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult;