/// import { type ITerminal } from '@rushstack/terminal'; import type { ISpfxServeSessionConfiguration, ISpfxServeTaskConfig } from '../../spfxConfig/interfaces/serve'; import { SPFxDebugPageUrl } from './SPFxDebugPageUrl'; /** * @internal * Helper utility for constructing debug page URL's for testing SharePoint Framework components and setting them on the serve task configuration. */ export declare class SPFxDebugPageUrlUtilities { static readonly NO_BROWSER_CLI_PARAMETER: string; static readonly CONFIG_CLI_GULP_PARAMETER_NAME: string; static readonly CONFIG_CLI_GULP_PARAMETER: string; static readonly CONFIG_CLI_HEFT_PARAMETER: string; static readonly SPFX_SERVE_TENANT_DOMAIN_ENV_VARIABLE: string; private static _domainEnvironmentVariableWarningLogged; private readonly _logger; static setServeInitialPage(terminal: ITerminal, taskConfig: ISpfxServeTaskConfig, selectedServeConfiguration: string | undefined, noBrowser: boolean): SPFxDebugPageUrl; constructor(logger: ITerminal); /** * Gets the initial page URL from the serve configuration. * @param taskConfig - The serve task configuration. * @param selectedServeConfiguration - The selected serve configuration. * @returns The initial page URL or undefined if not found. */ getServeInitialPageFromConfiguration(taskConfig: ISpfxServeTaskConfig, selectedServeConfiguration: string | undefined): SPFxDebugPageUrl; /** * Adds necessary query parameters to the initial URL based on the task configuration and serve configuration. * @param taskConfig - The serve task configuration. * @param serveConfiguration - The selected serve session configuration. * @returns The modified URL with added query parameters. */ buildQueryParameters(taskConfig: ISpfxServeTaskConfig, serveConfiguration: Pick | undefined): SPFxDebugPageUrl; /** * Returns the URL of the manifests.js file hosted by the local dev server. * * @remarks * For example: "http://localhost:4321/temp/build/manifests.js" * @param taskConfig - The serve task configuration. * @returns The URL of the manifests.js file. */ getManifestJsUrl(taskConfig: Pick): URL; /** * Returns the URL of the root of the local dev server. * * @remarks * For example: "http://localhost:4321/" * @param taskConfig - The serve task configuration. * @returns The URL of the root of the local dev server. */ getBaseServeUrl(taskConfig: Pick): URL; /** * Returns the value of the tenant domain environment variable. * @returns The value of the tenant domain environment variable, or undefined if not set. */ getDomainEnvironmentVariable(): string | undefined; } //# sourceMappingURL=SPFxDebugPageUrlUtilities.d.ts.map