import { URI } from "../../../../base/common/uri.js"; import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js"; export declare const gitHubEnterpriseUrisSetting = "github-enterprise.uris"; /** Reads enrollment configuration, never the destination for an authenticated request. */ export declare function getConfiguredGitHubEnterpriseUris(configurationService: IConfigurationService, isWorkspaceTrusted: boolean, legacySetting?: string): readonly string[]; export declare function addGitHubEnterpriseUri(configurationService: IConfigurationService, uri: string, isWorkspaceTrusted: boolean, legacySetting?: string, replacedUri?: string): Promise; export declare function isValidGitHubEnterpriseUri(value: string): boolean; export declare enum GheParseResultKind { Empty = "empty", SingleWord = "singleWord", FullUri = "fullUri", Invalid = "invalid" } type GheParseResult = { readonly kind: GheParseResultKind.Empty; } | { readonly kind: GheParseResultKind.SingleWord; readonly resolvedUri: string; } | { readonly kind: GheParseResultKind.FullUri; readonly resolvedUri: string; } | { readonly kind: GheParseResultKind.Invalid; }; /** Accepts a GHE.com instance name or HTTPS URL for Copilot enrollment. */ export declare function parseGheInstanceInput(value: string): GheParseResult; /** Returns the enterprise base identified by a session's OAuth issuer, never by configuration. */ export declare function getGitHubEnterpriseUri(authorizationServer: URI | undefined): URI | undefined; export {};