import { UseMutationOptions } from '@tanstack/react-query'; import type { RebuildRegistryIndexAcceptedV3Response } from '../responses/RebuildRegistryIndexAcceptedV3Response'; import type { ErrorV3 } from '../schemas/ErrorV3'; import type { ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface RebuildRegistryIndexV3MutationPathParams { id: string; } export interface RebuildRegistryIndexV3MutationQueryParams { account_identifier: string; } export type RebuildRegistryIndexV3OkResponse = ResponseWithPagination; export type RebuildRegistryIndexV3ErrorResponse = ErrorV3; export interface RebuildRegistryIndexV3Props extends RebuildRegistryIndexV3MutationPathParams, Omit, 'url'> { queryParams: RebuildRegistryIndexV3MutationQueryParams; } export declare function rebuildRegistryIndexV3(props: RebuildRegistryIndexV3Props): Promise; /** * Trigger an asynchronous rebuild of the repository index for the given registry. The rebuild runs in the background; this endpoint returns immediately once the request is accepted. Index rebuild is package-type specific — it is currently supported only for HELM_HTTP registries. Registries whose package type does not maintain a rebuildable index return 405. */ export declare function useRebuildRegistryIndexV3Mutation(options?: Omit, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult;