import { definePodRepository } from './repository'; import { threadResource, type ThreadRow, type ThreadInsert, type ThreadUpdate } from './thread.schema'; export interface ChatThreadTarget extends Record { parent: string; id?: string; } export declare function buildChatThreadTarget(chatIdOrRef: string, threadIdOrRef?: string): ChatThreadTarget; export declare function extractChatIdFromThread(row: Pick | null | undefined): string | null; export declare function readThreadRepositoryChatId(threadRef: string | null | undefined): string | null; export declare function readThreadRepositoryId(threadRef: string | null | undefined): string | null; export declare function buildChatThreadIri(webIdOrPodUrl: string, chatIdOrRef: string, threadId: string): string; export declare function buildChatThreadResourceId(chatIdOrRef: string, threadIdOrRef: string): string; export declare const threadRepository: ReturnType> & { targetForChat: typeof buildChatThreadTarget; iriForChat: typeof buildChatThreadIri; idForChat: typeof buildChatThreadResourceId; chatId: typeof extractChatIdFromThread; chatIdFromRef: typeof readThreadRepositoryChatId; idFromRef: typeof readThreadRepositoryId; };