import { UseQueryOptions } 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 { ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface GetMetadataQueryQueryParams { account_identifier: string; registry_identifier: string; path?: string; package?: string; version?: string; filters?: string[]; } export type GetMetadataOkResponse = ResponseWithPagination; export type GetMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse; export interface GetMetadataProps extends Omit, 'url'> { queryParams: GetMetadataQueryQueryParams; } export declare function getMetadata(props: GetMetadataProps): Promise; /** * Retrieves all metadata key-value pairs associated with a specific entity. * This endpoint returns metadata for packages, versions, or registry-level entities based on the provided path. * */ export declare function useGetMetadataQuery(props: GetMetadataProps, options?: Omit, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult;