import { I as IRestriction, g as INumericRestriction, F as FindNeighborsResponse } from '../../types-DyPriOk2.js'; import 'genkit'; import '../../types-B3i-Lt7D.js'; import 'google-auth-library'; import '@google-cloud/vertexai'; import 'genkit/model'; import '@google-cloud/aiplatform'; import 'genkit/embedder'; import 'genkit/retriever'; /** * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ interface QueryPublicEndpointParams { featureVector: number[]; neighborCount: number; accessToken: string; projectId: string; location: string; indexEndpointId: string; publicDomainName: string; projectNumber: string; deployedIndexId: string; restricts?: IRestriction[]; numericRestricts?: INumericRestriction[]; } /** * Queries a public index endpoint to find neighbors for a given feature vector. * * This function sends a request to a specified public endpoint to find neighbors * for a given feature vector using the provided parameters. * * @param {QueryPublicEndpointParams} params - The parameters required to query the public endpoint. * @param {number[]} params.featureVector - The feature vector for which to find neighbors. * @param {number} params.neighborCount - The number of neighbors to retrieve. * @param {string} params.accessToken - The access token for authorization. * @param {string} params.projectId - The ID of the Google Cloud project. * @param {string} params.location - The location of the index endpoint. * @param {string} params.indexEndpointId - The ID of the index endpoint. * @param {string} params.publicDomainName - The domain name of the public endpoint. * @param {string} params.projectNumber - The project number. * @param {string} params.deployedIndexId - The ID of the deployed index. * @returns {Promise} - The response from the public endpoint. */ declare function queryPublicEndpoint(params: QueryPublicEndpointParams): Promise; export { queryPublicEndpoint };