export declare const SHARE_TOKEN_HEADER = "X-Otto-Share-Token"; export declare const SHARE_TOKEN_STORAGE_KEY = "otto-share-token"; export declare const SHARE_PROJECT_ID_STORAGE_KEY = "otto-share-project-id"; export declare const SHARE_QUERY_PARAM = "share"; /** Returns the active share token, if the current tab is in share mode. */ export declare function getShareToken(): string | undefined; /** True when the current tab was booted from a `?share=` project share link. */ export declare function isShareMode(): boolean; /** * Returns the project id a share is pinned to, once it has been resolved from * the server. Returns undefined until resolution completes. */ export declare function getSharePinnedProjectId(): string | undefined; /** Persists the resolved pinned project id for the active share. */ export declare function setSharePinnedProjectId(projectId: string): void; /** Activates share mode with an explicitly supplied project-share token. */ export declare function activateShareMode(token: string): void; /** Clears all share credentials for the current tab. */ export declare function clearShareMode(): void; /** Builds the share auth header when a share token is active. */ export declare function getShareAuthHeaders(): Record; /** * Consumes a `?share=` boot parameter: stores the token as a distinct * share credential and strips it from the URL. Safe to call multiple times and * on non-browser environments. Returns the token when share mode is (or was * already) active for this tab. */ export declare function consumeShareBoot(): string | undefined; //# sourceMappingURL=share-mode.d.ts.map