import { URI } from "../../../../../base/common/uri.js"; export declare namespace LocalChatSessionUri { const scheme = "vscode-chat-session"; function forSession(sessionId: string): URI; function getNewSessionUri(): URI; function parseLocalSessionId(resource: URI): string | undefined; function isLocalSession(resource: URI): boolean; } /** * Converts a chat session resource URI to a string ID. * * This exists mainly for backwards compatibility with existing code that uses string IDs in telemetry and storage. */ export declare function chatSessionResourceToId(resource: URI): string; /** * Resolves a session resource that must be an immediate child of its storage root. */ export declare function getChatSessionStorageResource(storageRoot: URI, sessionId: string, suffix?: string): URI; /** * Extracts the chat session type from a resource URI. * * @param resource - The chat session resource URI * @returns The session type string. Returns `localChatSessionType` for local sessions * (vscodeChatEditor and vscodeLocalChatSession schemes), or the scheme/authority * for contributed sessions. */ export declare function getChatSessionType(resource: URI): string; export declare function isUntitledChatSession(resource: URI): boolean; /** * Builds a fresh untitled session resource for the given session type. Local * sessions get a new local-session URI; other types get an untitled URI under * their own scheme. */ export declare function getNewChatSessionResource(sessionType: string): URI;