import type { IntentPayload } from '@dynatrace-sdk/navigation'; /** * Parts of a link that sends an intent. * @internal */ export interface ParsedIntentLink { type: 'intent'; intentPayload: IntentPayload; appId?: string; intentId?: string; } /** * Parts of a link that opens an app. * @internal */ export interface ParsedAppLink { type: 'app'; appId: string; pageToken?: string; } /** * Parts of a link that opens a document. * @internal */ export interface ParsedDocumentLink { type: 'document'; documentId: string; } /** * Parts of a platform link, discriminated by the `type` property. * @internal */ export type ParsedPlatformLink = ParsedIntentLink | ParsedAppLink | ParsedDocumentLink; /** * The global object of a runtime that may provide `parsePlatformLink`. * @internal */ export type GlobalDtRuntimeWithPlatformLinkParser = typeof globalThis & { dtRuntime?: { navigation?: { parsePlatformLink?: (link: string) => ParsedPlatformLink | null; }; }; }; /** * Parses a link of the current environment into the parts of an intent, app or * document link. Relative links are resolved against the current environment. * Uses the runtime's `parsePlatformLink` when the runtime provides it, and the local * parser when it doesn't, when it throws, or when its result lacks a required part. * @param link - The absolute or relative URL to parse. * @returns the parts of the link, or `null` if it isn't a platform link of the current environment. * @internal */ export declare function parsePlatformLink(link: string): ParsedPlatformLink | null; //# sourceMappingURL=parse-platform-link.d.ts.map