declare type OpengrapherMetadata = { tags?: Record; amplitude?: string; url: string; payload: Payload; }; declare type Payload = { /** The entry channel to use for tracking. */ channel?: string; /** When this link was created. */ createdAt?: number; /** Custom data exposed to the game. */ data?: unknown; /** Feature flags that should be force set or unset for this player. */ featureFlags?: Record; /** The player ID that created this share link. */ referrer?: string; /** Tracking parameters to send along with the entry event. */ gcinstant?: Record; /** See CreateLinkOptions.trackProps. */ trackProps?: Record; /** The original HTTP Referer header if we were redirected through the opengrapher. */ httpReferrer?: string; }; export declare function decode(): Payload; export declare function decodeRaw(href: string): Payload; export declare function constructMetaPayload(explicitURL: string | undefined, payload: Payload, opts?: { tags?: Map; amplitudeKey?: string; }): OpengrapherMetadata; export declare function encode(explicitURL: string | undefined, payload: Payload, opts?: { tags?: Map; amplitudeKey?: string; }): string; /** Gets the custom link data. */ export declare function getLinkData(): unknown; /** Remove payload params from the given URL. */ export declare function stripPayloadsFromUrl(href: string): string; export {};