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 SaveMetadataMutationQueryParams { account_identifier: string; } export type SaveMetadataRequestBody = MetadataRequestRequestBody; export type SaveMetadataOkResponse = ResponseWithPagination; export type SaveMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse; export interface SaveMetadataProps extends Omit, 'url'> { queryParams: SaveMetadataMutationQueryParams; body: SaveMetadataRequestBody; } export declare function saveMetadata(props: SaveMetadataProps): Promise; /** * Saves metadata key-value pairs for a specific entity. * This endpoint allows you to save metadata for packages, versions, or registry-level entities. * This operation will remove existing metadata and save the new metadata. It is an idempotent operation. * */ export declare function useSaveMetadataMutation(options?: Omit, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult;