import type { CreateClientOptions, RequestOptions } from '@algolia/client-common'; import type { DelProps, GetProps, PostProps, PutProps } from '../model/clientMethodProps'; import type { PostIngestUrlResponse } from '../model/postIngestUrlResponse'; import type { PostURLJob } from '../model/postURLJob'; export declare const apiClientVersion = "1.0.0-alpha.1"; export declare const REGIONS: readonly ["de", "us"]; export declare type Region = typeof REGIONS[number]; export declare function createSourcesClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & { region: Region; }): { transporter: import("@algolia/client-common").Transporter; /** * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system. */ readonly _ua: string; /** * Adds a `segment` to the `x-algolia-agent` sent with every requests. * * @param segment - The algolia agent (user-agent) segment to add. * @param version - The version of the agent. */ addAlgoliaAgent(segment: string, version?: string): void; /** * This method allow you to send requests to the Algolia REST API. * * @summary Send requests to the Algolia REST API. * @param del - The del object. * @param del.path - The path of the API endpoint to target, anything after the /1 needs to be specified. * @param del.parameters - Query parameters to be applied to the current query. * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions. */ del({ path, parameters }: DelProps, requestOptions?: RequestOptions): Promise>; /** * This method allow you to send requests to the Algolia REST API. * * @summary Send requests to the Algolia REST API. * @param get - The get object. * @param get.path - The path of the API endpoint to target, anything after the /1 needs to be specified. * @param get.parameters - Query parameters to be applied to the current query. * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions. */ get({ path, parameters }: GetProps, requestOptions?: RequestOptions): Promise>; /** * This method allow you to send requests to the Algolia REST API. * * @summary Send requests to the Algolia REST API. * @param post - The post object. * @param post.path - The path of the API endpoint to target, anything after the /1 needs to be specified. * @param post.parameters - Query parameters to be applied to the current query. * @param post.body - The parameters to send with the custom request. * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions. */ post({ path, parameters, body }: PostProps, requestOptions?: RequestOptions): Promise>; /** * Add an ingestion job that will fetch data from an URL. * * @summary Create fetch URL job. * @param postURLJob - The postURLJob object. * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions. */ postIngestUrl(postURLJob: PostURLJob, requestOptions?: RequestOptions): Promise; /** * This method allow you to send requests to the Algolia REST API. * * @summary Send requests to the Algolia REST API. * @param put - The put object. * @param put.path - The path of the API endpoint to target, anything after the /1 needs to be specified. * @param put.parameters - Query parameters to be applied to the current query. * @param put.body - The parameters to send with the custom request. * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions. */ put({ path, parameters, body }: PutProps, requestOptions?: RequestOptions): Promise>; }; export declare type SourcesClient = ReturnType; //# sourceMappingURL=sourcesClient.d.ts.map