/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments.js"; import * as core from "../../../../core/index.js"; import * as FernAI from "../../../index.js"; export declare namespace Sources { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; token?: core.Supplier; /** Additional headers to include in requests. */ headers?: Record | undefined>; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ headers?: Record | undefined>; } } export declare class Sources { protected readonly _options: Sources.Options; constructor(_options?: Sources.Options); /** * Start indexing a GitHub repository for a domain. * * @param {string} domain * @param {FernAI.IndexGithubRequest} request * @param {Sources.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.sources.indexGithubSourceReposWithAgent("domain", { * repo_urls: ["repo_urls"] * }) */ indexGithubSourceReposWithAgent(domain: string, request: FernAI.IndexGithubRequest, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise; private __indexGithubSourceReposWithAgent; /** * Start indexing markdown files from GitHub repositories for a domain. * * @param {string} domain * @param {FernAI.IndexGithubRequest} request * @param {Sources.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.sources.indexGithubSourceReposMarkdown("domain", { * repo_urls: ["repo_urls"] * }) */ indexGithubSourceReposMarkdown(domain: string, request: FernAI.IndexGithubRequest, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise; private __indexGithubSourceReposMarkdown; /** * @param {string} domain * @param {FernAI.IndexingCallbackRequest} request * @param {Sources.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link FernAI.UnprocessableEntityError} * * @example * await client.sources.indexingCallback("domain", { * status: "status" * }) */ indexingCallback(domain: string, request: FernAI.IndexingCallbackRequest, requestOptions?: Sources.RequestOptions): core.HttpResponsePromise; private __indexingCallback; protected _getAuthorizationHeader(): Promise; }