import { UseQueryOptions } from '@tanstack/react-query'; import type { EnvironmentListResponseResponse } from '../responses/EnvironmentListResponseResponse'; import type { ResponseWithPagination } from '../helpers'; import { FetcherOptions } from '../../../../fetcher/index.js'; export interface GetOrgScopedEnvironmentsQueryPathParams { org: string; } export interface GetOrgScopedEnvironmentsQueryQueryParams { /** * @default 0 */ page?: number; /** * @default 20 */ limit?: number; search_term?: string; environment_ids?: string[]; sort?: 'created' | 'identifier' | 'name' | 'updated'; is_access_list?: boolean; order?: 'ASC' | 'DESC'; } export interface GetOrgScopedEnvironmentsQueryHeaderParams { 'Harness-Account'?: string; } export type GetOrgScopedEnvironmentsOkResponse = ResponseWithPagination; export type GetOrgScopedEnvironmentsErrorResponse = unknown; export interface GetOrgScopedEnvironmentsProps extends GetOrgScopedEnvironmentsQueryPathParams, Omit, 'url'> { queryParams: GetOrgScopedEnvironmentsQueryQueryParams; } export declare function getOrgScopedEnvironments(props: GetOrgScopedEnvironmentsProps): Promise; /** * Returns a list of the org scoped environments for which you have view permissions in the given org. */ export declare function useGetOrgScopedEnvironmentsQuery(props: GetOrgScopedEnvironmentsProps, options?: Omit, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult;