import { SessionShareService } from '../../../../share/session-share-service.js'; import type { getShareStore } from '../../../../share/share-store.js'; import { type ShareConfig, type ShareRecord } from '../../../../share/share-types.js'; import type { GatewayService } from '../../../service.js'; export type ShareStoreInstance = ReturnType; export declare const legacyPlaybackSecret: string; export declare const SHARE_PLAYBACK_TTL_MS: number; export declare function getShareUrlContext(service: GatewayService): { gatewayHost: string; gatewayPort: number; reverseProxyPublicUrl: string | null; }; export declare function resolveShareConfig(service: GatewayService): Partial; export declare function thumbnailRenderContext(service: GatewayService): { config: import("../../../../share/share-types.js").ShareThumbnailConfig; internalBaseUrl: string; }; export declare function hashPrincipal(token: string): string; export declare function acquireDownloadSlot(token: string): boolean; export declare function releaseDownloadSlot(token: string): void; export declare function acquireZipSlot(token: string, limit: number): boolean; export declare function releaseZipSlot(token: string): void; export declare function isPreviewableInline(mime: string, whitelist: string[]): boolean; export declare function isRichSpaPreviewable(mime: string): boolean; export declare function rfc5987ContentDisposition(disposition: 'inline' | 'attachment', fileName: string): string; export declare function getSpaceShareTarget(source: unknown): Promise<{ path: string; version: import("@xopcai/gateway-contract/src/space.js").SpaceVersion; }>; export declare function createSessionShareSource(service: GatewayService): { getMetadata: (conversationId: string) => Promise; getSnapshot: (conversationId: string) => Promise; }; export declare function createSessionShareService(service: GatewayService, store: ShareStoreInstance): SessionShareService; export declare function buildLandingOg(service: GatewayService, record: ShareRecord): { absoluteShareUrl: string; absoluteThumbnailUrl: string; title: string; description: string | undefined; } | undefined; export declare function isSafeInlineSessionMime(mimeType: string): boolean; export declare function relPathFromAbs(workspaceRoot: string, abs: string): string; export declare function resolveWorkspaceRootForShare(service: GatewayService, conversationId: string | undefined, agentId: string | undefined): Promise;