import type { BaseContextPayload } from '../_contract/event-payloads/context/context-payload'; import { GetContextOptions } from '../options/get-context-options'; /** * Requests the extension context from Struct PIM. * The returned promise resolves with the context payload for the current extension point type * (e.g. {@link TabContextPayload}, {@link SectionContextPayload}, etc.), containing * the entity ID, entity type, current language, user, and segment information. * * The promise rejects with the host's reason if Struct PIM cannot provide a context, and rejects * on timeout if the host does not answer at all. * * @example * ```ts * const ctx = await struct.actions.getContext(); * console.log('Entity:', ctx.entityId, ctx.entityType); * ``` */ export declare function getContext(options?: GetContextOptions): Promise; //# sourceMappingURL=get-context.d.ts.map