/** * this function helps to get Parent context name from context * @ignore * @param context -- base context * @returns -- parent context name */ export declare const getParentContextName: (context: string) => string; /** * this function helps to build context name * @ignore * @param target -- container target name * @param baseContext -- base context * @param returnExistingContext if true, return the existing context * @returns -- new context name */ export declare const buildContextName: (target: string, baseContext: string, returnExistingContext?: boolean) => string; /** * this function helps to build transient context name * @private * @param id unique id to be added as transient item * @param baseContext base context to start build from * @returns newly built contextName */ export declare const buildTransientContextName: (id: string, baseContext: string) => string; /** * this function returns the transient context for the target container * @private * @param id transient item unique id * @param baseContext base context to start search from * @returns context if exists else empty string */ export declare const getTransientContext: (id: string | undefined, baseContext: string) => string; /** * this function helps to get Target name from context * @ignore * @param context -- base context * @returns -- target name */ export declare const getTargetFromContext: (context: string) => string; /** * Creates a context name for the modal in the format `app/primary_3/secondary_1'. Here `app/primary_3` is the parent context. * If the modal is opened from peek panel (tertiary), the context name will be in the format: `app/tertiary_1/secondary_1' * For skip new use case the format will be `app/secondary_1' * @param parentContext - Parent context from where modal is opened * @param context - new context for the secondary (modal) * @ignore */ export declare const buildModalContext: (parentContext: string, context: string) => string; /** * Return parent context for the modal, the context from where the modal is opened. For E.g.: `app/primary_1` and `app/tertiary_1`. * For skip new use case we don't have any parent context * @param context - modal context * @ignore */ export declare const getParentContext: (context: string) => string; /** * Get container from context name, this method is used in modal use cases. E.g: `app/primary_3/secondary_1' will return `app/secondary_1' * @param context - modal context * @ignore */ export declare const getContainerIdFromContext: (context: string) => string;