import { UseQueryOptions } from '@tanstack/react-query'; import type { ListVersionResponseResponse } from '../responses/ListVersionResponseResponse'; 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 ListVersionsQueryQueryParams { account_identifier: string; org_identifier?: string; project_identifier?: string; registry_identifier?: string[]; package?: string; metadata?: string[]; /** * @format int64 * @default 0 */ page?: number; /** * @format int64 * @default 20 */ size?: number; /** * @default "ASC" */ sort_order?: 'ASC' | 'DESC'; sort_field?: string; search_term?: string; package_type?: string[]; /** * @default "EXCLUDE" */ deleted?: 'EXCLUDE' | 'INCLUDE' | 'ONLY'; } export type ListVersionsOkResponse = ResponseWithPagination; export type ListVersionsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse; export interface ListVersionsProps extends Omit, 'url'> { queryParams: ListVersionsQueryQueryParams; } export declare function listVersions(props: ListVersionsProps): Promise; /** * Lists all the Versions. */ export declare function useListVersionsQuery(props: ListVersionsProps, options?: Omit, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult;