import { UseQueryOptions } from '@tanstack/react-query'; import type { ListPackageResponseResponse } from '../responses/ListPackageResponseResponse'; 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 ListPackagesQueryQueryParams { account_identifier: string; org_identifier?: string; project_identifier?: string; registry_identifier?: 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; artifact_type?: 'dataset' | 'model' | 'module' | 'provider'; package_type?: string[]; /** * @default "EXCLUDE" */ deleted?: 'EXCLUDE' | 'INCLUDE' | 'ONLY'; } export type ListPackagesOkResponse = ResponseWithPagination; export type ListPackagesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse; export interface ListPackagesProps extends Omit, 'url'> { queryParams: ListPackagesQueryQueryParams; } export declare function listPackages(props: ListPackagesProps): Promise; /** * Lists all the Image/Package */ export declare function useListPackagesQuery(props: ListPackagesProps, options?: Omit, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult;