export declare const getThread: import("convex/server").RegisteredQuery<"public", {
    threadId: import("convex/values").GenericId<"threads">;
}, Promise<{
    userId?: string | undefined;
    title?: string | undefined;
    summary?: string | undefined;
    status: "active" | "archived";
    _creationTime: number;
    _id: string;
} | null>>;
export declare const listThreadsByUserId: import("convex/server").RegisteredQuery<"public", {
    userId?: string | undefined;
    order?: "asc" | "desc" | undefined;
    paginationOpts?: {
        id?: number;
        endCursor?: string | null;
        maximumRowsRead?: number;
        maximumBytesRead?: number;
        numItems: number;
        cursor: string | null;
    } | undefined;
}, Promise<{
    page: {
        userId?: string | undefined;
        title?: string | undefined;
        summary?: string | undefined;
        status: "active" | "archived";
        _creationTime: number;
        _id: string;
    }[];
    isDone: boolean;
    continueCursor: import("convex/server").Cursor;
    splitCursor?: import("convex/server").Cursor | null;
    pageStatus?: "SplitRecommended" | "SplitRequired" | null;
}>>;
export declare const createThread: import("convex/server").RegisteredMutation<"public", {
    userId?: string | undefined;
    title?: string | undefined;
    summary?: string | undefined;
    defaultSystemPrompt?: string | undefined;
    parentThreadIds?: import("convex/values").GenericId<"threads">[] | undefined;
}, Promise<{
    userId?: string | undefined;
    title?: string | undefined;
    summary?: string | undefined;
    status: "active" | "archived";
    _creationTime: number;
    _id: string;
}>>;
export declare const threadFieldsSupportingPatch: ("status" | "userId" | "title" | "summary")[];
export declare const updateThread: import("convex/server").RegisteredMutation<"public", {
    threadId: import("convex/values").GenericId<"threads">;
    patch: {
        status?: "active" | "archived" | undefined;
        userId?: string | undefined;
        title?: string | undefined;
        summary?: string | undefined;
    };
}, Promise<{
    userId?: string | undefined;
    title?: string | undefined;
    summary?: string | undefined;
    status: "active" | "archived";
    _creationTime: number;
    _id: string;
}>>;
export declare const searchThreadTitles: import("convex/server").RegisteredQuery<"public", {
    userId?: string | null | undefined;
    limit: number;
    query: string;
}, Promise<{
    userId?: string | undefined;
    title?: string | undefined;
    summary?: string | undefined;
    status: "active" | "archived";
    _creationTime: number;
    _id: string;
}[]>>;
/**
 * Use this to delete a thread and everything it contains.
 * It will try to delete all pages synchronously.
 * If it times out or fails, you'll have to run it again.
 */
export declare const deleteAllForThreadIdSync: import("convex/server").RegisteredAction<"public", {
    limit?: number | undefined;
    threadId: import("convex/values").GenericId<"threads">;
}, Promise<void>>;
export declare const _deletePageForThreadId: import("convex/server").RegisteredMutation<"internal", {
    limit?: number | undefined;
    cursor?: string | undefined;
    deltaCursor?: string | undefined;
    streamOrder?: number | undefined;
    messagesDone?: boolean | undefined;
    streamsDone?: boolean | undefined;
    threadId: import("convex/values").GenericId<"threads">;
}, Promise<{
    isDone: boolean;
    cursor: string;
}>>;
/**
 * Use this to delete a thread and everything it contains.
 * It will continue deleting pages asynchronously.
 */
export declare const deleteAllForThreadIdAsync: import("convex/server").RegisteredMutation<"public", {
    limit?: number | undefined;
    cursor?: string | undefined;
    deltaCursor?: string | undefined;
    streamOrder?: number | undefined;
    messagesDone?: boolean | undefined;
    streamsDone?: boolean | undefined;
    threadId: import("convex/values").GenericId<"threads">;
}, Promise<{
    isDone: boolean;
}>>;
//# sourceMappingURL=threads.d.ts.map