@zendesk/zcli-core
Version:
ZCLI core libraries and services
14 lines (13 loc) • 500 B
TypeScript
import { Profile } from '../types';
/**
* Parse a subdomain.
*
* If someone mistakenly provides full hostname or Url instead of a subdomain
* then strip out domain name from it.
*
* @param {string} subdomain - The subdomain.
* @return {string} The parsed subdomain.
*/
export declare const parseSubdomain: (subdomain: string) => string;
export declare const getAccount: (subdomain: string, domain?: string) => string;
export declare const getProfileFromAccount: (account: string) => Profile;