import { URL } from 'node:url'; export declare function getLoginAudienceCombos(audienceUrl: string, loginUrl: string): Array<[string, string]>; export declare class SfdcUrl extends URL { /** * Salesforce URLs */ static readonly SANDBOX = "https://test.salesforce.com"; static readonly PRODUCTION = "https://login.salesforce.com"; private static readonly cache; private logger; private envVars; constructor(input: string | URL, base?: string | URL); static isValidUrl(input: string | URL): boolean; /** * Returns the appropriate jwt audience url for this url * Use SF_AUDIENCE_URL env var to override the audience url * * @param createdOrgInstance The Salesforce instance the org was created on. e.g. `cs42` * @return {Promise} The audience url */ getJwtAudienceUrl(createdOrgInstance?: string): Promise; /** * Tests whether this url contains a Salesforce owned domain * * @return {boolean} true if this is a salesforce domain */ isSalesforceDomain(): boolean; /** * Tests whether this url is an internal Salesforce domain * * @returns {boolean} true if this is an internal domain */ isInternalUrl(): boolean; /** * Tests whether this url runs on a local machine * * @returns {boolean} true if this is a local machine */ isLocalUrl(): boolean; toLightningDomain(): string; /** * Tests whether this url has the lightning domain extension * This method that performs the dns lookup of the host. If the lookup fails the internal polling (1 second), client will try again until timeout * If SF_DOMAIN_RETRY environment variable is set (number) it overrides the default timeout duration (240 seconds) * * @returns {Promise} The resolved ip address or never * @throws {@link SfError} If can't resolve DNS. */ checkLightningDomain(): Promise; /** * Method that performs the dns lookup of the host. If the lookup fails the internal polling (1 second), client will try again until timeout * If SF_DOMAIN_RETRY environment variable is set (number) it overrides the default timeout duration (240 seconds) * * @returns the resolved ip address. * @throws {@link SfError} If can't resolve DNS. */ lookup(): Promise; /** * Test whether this url represents a lightning domain * * @returns {boolean} true if this domain is a lightning domain */ isLightningDomain(): boolean; }