import { TranslateService } from '@ngx-translate/core'; import { NewTabParameters } from './tabs.service'; import { BaseTabComponent } from '../components/baseTab.component'; import { PartialProfile, PartialProfileGroup, Profile, ProfileGroup, ProfileProvider } from '../api/profileProvider'; import { SelectorOption } from '../api/selector'; import { AppService } from './app.service'; import { ConfigService } from './config.service'; import { NotificationsService } from './notifications.service'; import { SelectorService } from './selector.service'; export declare class ProfilesService { private app; private config; private notifications; private selector; private translate; private profileProviders; private profileDefaults; constructor(app: AppService, config: ConfigService, notifications: NotificationsService, selector: SelectorService, translate: TranslateService, profileProviders: ProfileProvider[]); getProviders(): ProfileProvider[]; providerForProfile(profile: PartialProfile): ProfileProvider | null; getDescription

(profile: PartialProfile

): string | null; getConfigProxyForProfile(profile: PartialProfile, options?: { skipGlobalDefaults?: boolean; skipGroupDefaults?: boolean; }): T; /** * Return an Array of Profiles * arg: includeBuiltin (default: true) -> include BuiltinProfiles * arg: clone (default: false) -> return deepclone Array */ getProfiles(options?: { includeBuiltin?: boolean; clone?: boolean; }): Promise[]>; /** * Insert a new Profile in config * arg: genId (default: true) -> generate uuid in before pushing Profile into config */ newProfile(profile: PartialProfile, options?: { genId?: boolean; }): Promise; /** * Write a Profile in config */ writeProfile(profile: PartialProfile): Promise; /** * Delete a Profile from config */ deleteProfile(profile: PartialProfile): Promise; /** * Delete all Profiles from config using option filter * arg: filter (p: PartialProfile) => boolean -> predicate used to decide which profiles have to be deleted */ bulkDeleteProfiles(filter: (p: PartialProfile) => boolean): Promise; openNewTabForProfile

(profile: PartialProfile

): Promise; newTabParametersForProfile

(profile: PartialProfile

): Promise | null>; launchProfile(profile: PartialProfile): Promise; static getProfileHotkeyName(profile: PartialProfile): string; selectorOptionForProfile

(profile: PartialProfile

): SelectorOption; showProfileSelector(): Promise | null>; getRecentProfiles(): PartialProfile[]; quickConnect(query: string): Promise | null>; /** * Return global defaults for a given profile provider * Always return something, empty object if no defaults found */ getProviderDefaults(provider: ProfileProvider): any; /** * Set global defaults for a given profile provider */ setProviderDefaults(provider: ProfileProvider, pdefaults: any): void; /** * Return defaults for a given profile * Always return something, empty object if no defaults found * arg: skipUserDefaults -> do not merge global provider defaults in ConfigProxy * arg: skipGroupDefaults -> do not merge parent group provider defaults in ConfigProxy */ getProfileDefaults(profile: PartialProfile, options?: { skipGlobalDefaults?: boolean; skipGroupDefaults?: boolean; }): any[]; /** * Synchronously return an Array of the existing ProfileGroups * Does not return builtin groups */ getSyncProfileGroups(): PartialProfileGroup[]; /** * Return an Array of the existing ProfileGroups * arg: includeProfiles (default: false) -> if false, does not fill up the profiles field of ProfileGroup * arg: includeNonUserGroup (default: false) -> if false, does not add built-in and ungrouped groups */ getProfileGroups(options?: { includeProfiles?: boolean; includeNonUserGroup?: boolean; }): Promise[]>; /** * Insert a new ProfileGroup in config * arg: genId (default: true) -> generate uuid in before pushing Profile into config */ newProfileGroup(group: PartialProfileGroup, options?: { genId?: boolean; }): Promise; /** * Write a ProfileGroup in config */ writeProfileGroup(group: PartialProfileGroup): Promise; /** * Delete a ProfileGroup from config */ deleteProfileGroup(group: PartialProfileGroup, options?: { deleteProfiles?: boolean; }): Promise; /** * Resolve and return ProfileGroup Name from ProfileGroup ID */ resolveProfileGroupName(groupId: string): string; /** * Return defaults for a given group ID and provider * Always return something, empty object if no defaults found * arg: skipUserDefaults -> do not merge global provider defaults in ConfigProxy */ getProviderProfileGroupDefaults(groupId: string, provider: ProfileProvider): any; }