import { UseQueryOptions } from '@tanstack/react-query'; import type { ListArtifactResponseResponse } from '../responses/ListArtifactResponseResponse'; 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 GetAllArtifactsQueryPathParams { space_ref: string; } export interface GetAllArtifactsQueryQueryParams { reg_identifier?: string[]; /** * @format int64 * @default 1 */ page?: number; /** * @format int64 * @default 20 */ size?: number; sort_order?: string; sort_field?: string; search_term?: string; latest_version?: boolean; deployed_artifact?: boolean; package_type?: string[]; } export type GetAllArtifactsOkResponse = ResponseWithPagination; export type GetAllArtifactsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse; export interface GetAllArtifactsProps extends GetAllArtifactsQueryPathParams, Omit, 'url'> { queryParams: GetAllArtifactsQueryQueryParams; } export declare function getAllArtifacts(props: GetAllArtifactsProps): Promise; /** * Lists all the artifacts */ export declare function useGetAllArtifactsQuery(props: GetAllArtifactsProps, options?: Omit, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult;