import type { MastraDBMessage } from '@mastra/core/agent';
export declare function getTextContent(message: MastraDBMessage): string;
export declare const GET_MEMORY_STATUS_ROUTE: import("../server-adapter").ServerRoute<{
    agentId: string;
}, {
    result: boolean;
}, "json">;
export declare const GET_MEMORY_CONFIG_ROUTE: import("../server-adapter").ServerRoute<{
    agentId: string;
}, {
    config: {
        lastMessages?: number | false | undefined;
        semanticRecall?: any;
        workingMemory?: any;
    };
}, "json">;
export declare const LIST_THREADS_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
    perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
    page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
} & {
    agentId: import("zod").ZodOptional<import("zod").ZodString>;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
    metadata: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>, Record<string, any> | undefined, unknown>;
    orderBy: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
        field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt", "updatedAt"]>>;
        direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
    }, "strip", import("zod").ZodTypeAny, {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }, {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }>>, {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined, unknown>;
}, "strip", import("zod").ZodTypeAny, {
    page: number;
    perPage: number;
    metadata?: Record<string, any> | undefined;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined;
}, {
    page?: number | undefined;
    perPage?: number | undefined;
    metadata?: unknown;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: unknown;
}> | import("zod").ZodObject<{
    perPage: import("zod").ZodOptional<import("zod").ZodNumber>;
    page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
} & {
    agentId: import("zod").ZodOptional<import("zod").ZodString>;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
    metadata: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>, Record<string, any> | undefined, unknown>;
    orderBy: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
        field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt", "updatedAt"]>>;
        direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
    }, "strip", import("zod").ZodTypeAny, {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }, {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }>>, {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined, unknown>;
}, "strip", import("zod").ZodTypeAny, {
    page: number;
    perPage?: number | undefined;
    metadata?: Record<string, any> | undefined;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined;
}, {
    page?: number | undefined;
    perPage?: number | undefined;
    metadata?: unknown;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: unknown;
}>, undefined>, {
    total: number;
    page: number;
    perPage: number | false;
    hasMore: boolean;
    threads: {
        id: string;
        createdAt: Date;
        updatedAt: Date;
        resourceId: string;
        metadata?: Record<string, unknown> | undefined;
        title?: string | undefined;
    }[];
}, "json">;
export declare const GET_THREAD_BY_ID_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
    threadId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    threadId: string;
}, {
    threadId: string;
}>, import("zod").ZodObject<{
    agentId: import("zod").ZodOptional<import("zod").ZodString>;
} & {
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
}, "strip", import("zod").ZodTypeAny, {
    resourceId?: string | undefined;
    agentId?: string | undefined;
}, {
    resourceId?: string | undefined;
    agentId?: string | undefined;
}>, undefined>, {
    id: string;
    createdAt: Date;
    updatedAt: Date;
    resourceId: string;
    metadata?: Record<string, unknown> | undefined;
    title?: string | undefined;
}, "json">;
export declare const LIST_MESSAGES_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
    threadId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    threadId: string;
}, {
    threadId: string;
}>, import("zod").ZodObject<{
    perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
    page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
} & {
    agentId: import("zod").ZodOptional<import("zod").ZodString>;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
    orderBy: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
        field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt"]>>;
        direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
    }, "strip", import("zod").ZodTypeAny, {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }, {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }>>, {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined, unknown>;
    include: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
        id: import("zod").ZodString;
        threadId: import("zod").ZodOptional<import("zod").ZodString>;
        withPreviousMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
        withNextMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
    }, "strip", import("zod").ZodTypeAny, {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }, {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }>, "many">>, {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }[] | undefined, unknown>;
    filter: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
        dateRange: import("zod").ZodOptional<import("zod").ZodObject<{
            start: import("zod").ZodOptional<import("zod").ZodDate>;
            end: import("zod").ZodOptional<import("zod").ZodDate>;
        }, "strip", import("zod").ZodTypeAny, {
            start?: Date | undefined;
            end?: Date | undefined;
        }, {
            start?: Date | undefined;
            end?: Date | undefined;
        }>>;
        roles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
    }, "strip", import("zod").ZodTypeAny, {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    }, {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    }>>, {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    } | undefined, unknown>;
}, "strip", import("zod").ZodTypeAny, {
    page: number;
    perPage: number;
    filter?: {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    } | undefined;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined;
    include?: {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }[] | undefined;
}, {
    filter?: unknown;
    page?: number | undefined;
    perPage?: number | undefined;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: unknown;
    include?: unknown;
}> | import("zod").ZodObject<{
    perPage: import("zod").ZodOptional<import("zod").ZodNumber>;
    page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
} & {
    agentId: import("zod").ZodOptional<import("zod").ZodString>;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
    orderBy: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
        field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt"]>>;
        direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
    }, "strip", import("zod").ZodTypeAny, {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }, {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }>>, {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined, unknown>;
    include: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
        id: import("zod").ZodString;
        threadId: import("zod").ZodOptional<import("zod").ZodString>;
        withPreviousMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
        withNextMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
    }, "strip", import("zod").ZodTypeAny, {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }, {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }>, "many">>, {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }[] | undefined, unknown>;
    filter: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
        dateRange: import("zod").ZodOptional<import("zod").ZodObject<{
            start: import("zod").ZodOptional<import("zod").ZodDate>;
            end: import("zod").ZodOptional<import("zod").ZodDate>;
        }, "strip", import("zod").ZodTypeAny, {
            start?: Date | undefined;
            end?: Date | undefined;
        }, {
            start?: Date | undefined;
            end?: Date | undefined;
        }>>;
        roles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
    }, "strip", import("zod").ZodTypeAny, {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    }, {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    }>>, {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    } | undefined, unknown>;
}, "strip", import("zod").ZodTypeAny, {
    page: number;
    filter?: {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    } | undefined;
    perPage?: number | undefined;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined;
    include?: {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }[] | undefined;
}, {
    filter?: unknown;
    page?: number | undefined;
    perPage?: number | undefined;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: unknown;
    include?: unknown;
}>, undefined>, {
    messages: any[];
    uiMessages?: unknown;
}, "json">;
export declare const GET_WORKING_MEMORY_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
    threadId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    threadId: string;
}, {
    threadId: string;
}>, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
    memoryConfig: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>, Record<string, unknown> | undefined, unknown>;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
    resourceId?: string | undefined;
    memoryConfig?: Record<string, unknown> | undefined;
}, {
    agentId: string;
    resourceId?: string | undefined;
    memoryConfig?: unknown;
}>, undefined>, {
    source: "thread" | "resource";
    threadExists: boolean;
    workingMemory?: unknown;
    workingMemoryTemplate?: unknown;
}, "json">;
export declare const SAVE_MESSAGES_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
}, {
    agentId: string;
}>, import("zod").ZodObject<{
    messages: import("zod").ZodArray<import("zod").ZodAny, "many">;
}, "strip", import("zod").ZodTypeAny, {
    messages: any[];
}, {
    messages: any[];
}>>, {
    messages: any[];
}, "json">;
export declare const CREATE_THREAD_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
}, {
    agentId: string;
}>, import("zod").ZodObject<{
    resourceId: import("zod").ZodString;
    title: import("zod").ZodOptional<import("zod").ZodString>;
    metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
    threadId: import("zod").ZodOptional<import("zod").ZodString>;
}, "strip", import("zod").ZodTypeAny, {
    resourceId: string;
    metadata?: Record<string, unknown> | undefined;
    threadId?: string | undefined;
    title?: string | undefined;
}, {
    resourceId: string;
    metadata?: Record<string, unknown> | undefined;
    threadId?: string | undefined;
    title?: string | undefined;
}>>, {
    id: string;
    createdAt: Date;
    updatedAt: Date;
    resourceId: string;
    metadata?: Record<string, unknown> | undefined;
    title?: string | undefined;
}, "json">;
export declare const UPDATE_THREAD_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
    threadId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    threadId: string;
}, {
    threadId: string;
}>, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
}, {
    agentId: string;
}>, import("zod").ZodObject<{
    title: import("zod").ZodOptional<import("zod").ZodString>;
    metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
}, "strip", import("zod").ZodTypeAny, {
    metadata?: Record<string, unknown> | undefined;
    resourceId?: string | undefined;
    title?: string | undefined;
}, {
    metadata?: Record<string, unknown> | undefined;
    resourceId?: string | undefined;
    title?: string | undefined;
}>>, {
    id: string;
    createdAt: Date;
    updatedAt: Date;
    resourceId: string;
    metadata?: Record<string, unknown> | undefined;
    title?: string | undefined;
}, "json">;
export declare const DELETE_THREAD_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
    threadId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    threadId: string;
}, {
    threadId: string;
}>, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
} & {
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
    resourceId?: string | undefined;
}, {
    agentId: string;
    resourceId?: string | undefined;
}>, undefined>, {
    result: string;
}, "json">;
export declare const CLONE_THREAD_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
    threadId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    threadId: string;
}, {
    threadId: string;
}>, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
}, {
    agentId: string;
}>, import("zod").ZodObject<{
    newThreadId: import("zod").ZodOptional<import("zod").ZodString>;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
    title: import("zod").ZodOptional<import("zod").ZodString>;
    metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
    options: import("zod").ZodOptional<import("zod").ZodObject<{
        messageLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
        messageFilter: import("zod").ZodOptional<import("zod").ZodObject<{
            startDate: import("zod").ZodOptional<import("zod").ZodDate>;
            endDate: import("zod").ZodOptional<import("zod").ZodDate>;
            messageIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
        }, "strip", import("zod").ZodTypeAny, {
            messageIds?: string[] | undefined;
            startDate?: Date | undefined;
            endDate?: Date | undefined;
        }, {
            messageIds?: string[] | undefined;
            startDate?: Date | undefined;
            endDate?: Date | undefined;
        }>>;
    }, "strip", import("zod").ZodTypeAny, {
        messageLimit?: number | undefined;
        messageFilter?: {
            messageIds?: string[] | undefined;
            startDate?: Date | undefined;
            endDate?: Date | undefined;
        } | undefined;
    }, {
        messageLimit?: number | undefined;
        messageFilter?: {
            messageIds?: string[] | undefined;
            startDate?: Date | undefined;
            endDate?: Date | undefined;
        } | undefined;
    }>>;
}, "strip", import("zod").ZodTypeAny, {
    options?: {
        messageLimit?: number | undefined;
        messageFilter?: {
            messageIds?: string[] | undefined;
            startDate?: Date | undefined;
            endDate?: Date | undefined;
        } | undefined;
    } | undefined;
    metadata?: Record<string, unknown> | undefined;
    resourceId?: string | undefined;
    title?: string | undefined;
    newThreadId?: string | undefined;
}, {
    options?: {
        messageLimit?: number | undefined;
        messageFilter?: {
            messageIds?: string[] | undefined;
            startDate?: Date | undefined;
            endDate?: Date | undefined;
        } | undefined;
    } | undefined;
    metadata?: Record<string, unknown> | undefined;
    resourceId?: string | undefined;
    title?: string | undefined;
    newThreadId?: string | undefined;
}>>, {
    thread: {
        id: string;
        createdAt: Date;
        updatedAt: Date;
        resourceId: string;
        metadata?: Record<string, unknown> | undefined;
        title?: string | undefined;
    };
    clonedMessages: any[];
}, "json">;
export declare const UPDATE_WORKING_MEMORY_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
    threadId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    threadId: string;
}, {
    threadId: string;
}>, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
}, {
    agentId: string;
}>, import("zod").ZodObject<{
    workingMemory: import("zod").ZodString;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
    memoryConfig: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
}, "strip", import("zod").ZodTypeAny, {
    workingMemory: string;
    resourceId?: string | undefined;
    memoryConfig?: Record<string, unknown> | undefined;
}, {
    workingMemory: string;
    resourceId?: string | undefined;
    memoryConfig?: Record<string, unknown> | undefined;
}>>, {
    success: boolean;
}, "json">;
export declare const DELETE_MESSAGES_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
} & {
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
    resourceId?: string | undefined;
}, {
    agentId: string;
    resourceId?: string | undefined;
}>, import("zod").ZodObject<{
    messageIds: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodObject<{
        id: import("zod").ZodString;
    }, "strip", import("zod").ZodTypeAny, {
        id: string;
    }, {
        id: string;
    }>, import("zod").ZodArray<import("zod").ZodObject<{
        id: import("zod").ZodString;
    }, "strip", import("zod").ZodTypeAny, {
        id: string;
    }, {
        id: string;
    }>, "many">]>;
}, "strip", import("zod").ZodTypeAny, {
    messageIds: string | string[] | {
        id: string;
    } | {
        id: string;
    }[];
}, {
    messageIds: string | string[] | {
        id: string;
    } | {
        id: string;
    }[];
}>>, {
    message: string;
    success: boolean;
}, "json">;
export declare const SEARCH_MEMORY_ROUTE: import("../server-adapter").ServerRoute<{
    limit: number;
    resourceId: string;
    agentId: string;
    searchQuery: string;
    threadId?: string | undefined;
    memoryConfig?: Record<string, unknown> | undefined;
}, {
    query: string;
    results: unknown[];
    count: number;
    searchType?: string | undefined;
    searchScope?: string | undefined;
}, "json">;
export declare const GET_MEMORY_STATUS_NETWORK_ROUTE: import("../server-adapter").ServerRoute<{
    agentId: string;
}, {
    result: boolean;
}, "json">;
export declare const LIST_THREADS_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
    perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
    page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
} & {
    agentId: import("zod").ZodOptional<import("zod").ZodString>;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
    metadata: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>, Record<string, any> | undefined, unknown>;
    orderBy: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
        field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt", "updatedAt"]>>;
        direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
    }, "strip", import("zod").ZodTypeAny, {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }, {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }>>, {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined, unknown>;
}, "strip", import("zod").ZodTypeAny, {
    page: number;
    perPage: number;
    metadata?: Record<string, any> | undefined;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined;
}, {
    page?: number | undefined;
    perPage?: number | undefined;
    metadata?: unknown;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: unknown;
}> | import("zod").ZodObject<{
    perPage: import("zod").ZodOptional<import("zod").ZodNumber>;
    page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
} & {
    agentId: import("zod").ZodOptional<import("zod").ZodString>;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
    metadata: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>, Record<string, any> | undefined, unknown>;
    orderBy: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
        field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt", "updatedAt"]>>;
        direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
    }, "strip", import("zod").ZodTypeAny, {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }, {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }>>, {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined, unknown>;
}, "strip", import("zod").ZodTypeAny, {
    page: number;
    perPage?: number | undefined;
    metadata?: Record<string, any> | undefined;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: {
        field?: "createdAt" | "updatedAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined;
}, {
    page?: number | undefined;
    perPage?: number | undefined;
    metadata?: unknown;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: unknown;
}>, undefined>, {
    total: number;
    page: number;
    perPage: number | false;
    hasMore: boolean;
    threads: {
        id: string;
        createdAt: Date;
        updatedAt: Date;
        resourceId: string;
        metadata?: Record<string, unknown> | undefined;
        title?: string | undefined;
    }[];
}, "json">;
export declare const GET_THREAD_BY_ID_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
    threadId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    threadId: string;
}, {
    threadId: string;
}>, import("zod").ZodObject<{
    agentId: import("zod").ZodOptional<import("zod").ZodString>;
} & {
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
}, "strip", import("zod").ZodTypeAny, {
    resourceId?: string | undefined;
    agentId?: string | undefined;
}, {
    resourceId?: string | undefined;
    agentId?: string | undefined;
}>, undefined>, {
    id: string;
    createdAt: Date;
    updatedAt: Date;
    resourceId: string;
    metadata?: Record<string, unknown> | undefined;
    title?: string | undefined;
}, "json">;
export declare const LIST_MESSAGES_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
    threadId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    threadId: string;
}, {
    threadId: string;
}>, import("zod").ZodObject<{
    perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
    page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
} & {
    agentId: import("zod").ZodOptional<import("zod").ZodString>;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
    orderBy: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
        field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt"]>>;
        direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
    }, "strip", import("zod").ZodTypeAny, {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }, {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }>>, {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined, unknown>;
    include: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
        id: import("zod").ZodString;
        threadId: import("zod").ZodOptional<import("zod").ZodString>;
        withPreviousMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
        withNextMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
    }, "strip", import("zod").ZodTypeAny, {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }, {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }>, "many">>, {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }[] | undefined, unknown>;
    filter: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
        dateRange: import("zod").ZodOptional<import("zod").ZodObject<{
            start: import("zod").ZodOptional<import("zod").ZodDate>;
            end: import("zod").ZodOptional<import("zod").ZodDate>;
        }, "strip", import("zod").ZodTypeAny, {
            start?: Date | undefined;
            end?: Date | undefined;
        }, {
            start?: Date | undefined;
            end?: Date | undefined;
        }>>;
        roles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
    }, "strip", import("zod").ZodTypeAny, {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    }, {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    }>>, {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    } | undefined, unknown>;
}, "strip", import("zod").ZodTypeAny, {
    page: number;
    perPage: number;
    filter?: {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    } | undefined;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined;
    include?: {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }[] | undefined;
}, {
    filter?: unknown;
    page?: number | undefined;
    perPage?: number | undefined;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: unknown;
    include?: unknown;
}> | import("zod").ZodObject<{
    perPage: import("zod").ZodOptional<import("zod").ZodNumber>;
    page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
} & {
    agentId: import("zod").ZodOptional<import("zod").ZodString>;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
    orderBy: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
        field: import("zod").ZodOptional<import("zod").ZodEnum<["createdAt"]>>;
        direction: import("zod").ZodOptional<import("zod").ZodEnum<["ASC", "DESC"]>>;
    }, "strip", import("zod").ZodTypeAny, {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }, {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    }>>, {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined, unknown>;
    include: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
        id: import("zod").ZodString;
        threadId: import("zod").ZodOptional<import("zod").ZodString>;
        withPreviousMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
        withNextMessages: import("zod").ZodOptional<import("zod").ZodNumber>;
    }, "strip", import("zod").ZodTypeAny, {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }, {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }>, "many">>, {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }[] | undefined, unknown>;
    filter: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodObject<{
        dateRange: import("zod").ZodOptional<import("zod").ZodObject<{
            start: import("zod").ZodOptional<import("zod").ZodDate>;
            end: import("zod").ZodOptional<import("zod").ZodDate>;
        }, "strip", import("zod").ZodTypeAny, {
            start?: Date | undefined;
            end?: Date | undefined;
        }, {
            start?: Date | undefined;
            end?: Date | undefined;
        }>>;
        roles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
    }, "strip", import("zod").ZodTypeAny, {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    }, {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    }>>, {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    } | undefined, unknown>;
}, "strip", import("zod").ZodTypeAny, {
    page: number;
    filter?: {
        roles?: string[] | undefined;
        dateRange?: {
            start?: Date | undefined;
            end?: Date | undefined;
        } | undefined;
    } | undefined;
    perPage?: number | undefined;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: {
        field?: "createdAt" | undefined;
        direction?: "ASC" | "DESC" | undefined;
    } | undefined;
    include?: {
        id: string;
        threadId?: string | undefined;
        withPreviousMessages?: number | undefined;
        withNextMessages?: number | undefined;
    }[] | undefined;
}, {
    filter?: unknown;
    page?: number | undefined;
    perPage?: number | undefined;
    resourceId?: string | undefined;
    agentId?: string | undefined;
    orderBy?: unknown;
    include?: unknown;
}>, undefined>, {
    messages: any[];
    uiMessages?: unknown;
}, "json">;
export declare const SAVE_MESSAGES_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
}, {
    agentId: string;
}>, import("zod").ZodObject<{
    messages: import("zod").ZodArray<import("zod").ZodAny, "many">;
}, "strip", import("zod").ZodTypeAny, {
    messages: any[];
}, {
    messages: any[];
}>>, {
    messages: any[];
}, "json">;
export declare const CREATE_THREAD_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
}, {
    agentId: string;
}>, import("zod").ZodObject<{
    resourceId: import("zod").ZodString;
    title: import("zod").ZodOptional<import("zod").ZodString>;
    metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
    threadId: import("zod").ZodOptional<import("zod").ZodString>;
}, "strip", import("zod").ZodTypeAny, {
    resourceId: string;
    metadata?: Record<string, unknown> | undefined;
    threadId?: string | undefined;
    title?: string | undefined;
}, {
    resourceId: string;
    metadata?: Record<string, unknown> | undefined;
    threadId?: string | undefined;
    title?: string | undefined;
}>>, {
    id: string;
    createdAt: Date;
    updatedAt: Date;
    resourceId: string;
    metadata?: Record<string, unknown> | undefined;
    title?: string | undefined;
}, "json">;
export declare const UPDATE_THREAD_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
    threadId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    threadId: string;
}, {
    threadId: string;
}>, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
}, {
    agentId: string;
}>, import("zod").ZodObject<{
    title: import("zod").ZodOptional<import("zod").ZodString>;
    metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
}, "strip", import("zod").ZodTypeAny, {
    metadata?: Record<string, unknown> | undefined;
    resourceId?: string | undefined;
    title?: string | undefined;
}, {
    metadata?: Record<string, unknown> | undefined;
    resourceId?: string | undefined;
    title?: string | undefined;
}>>, {
    id: string;
    createdAt: Date;
    updatedAt: Date;
    resourceId: string;
    metadata?: Record<string, unknown> | undefined;
    title?: string | undefined;
}, "json">;
export declare const DELETE_THREAD_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<import("zod").ZodObject<{
    threadId: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
    threadId: string;
}, {
    threadId: string;
}>, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
} & {
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
    resourceId?: string | undefined;
}, {
    agentId: string;
    resourceId?: string | undefined;
}>, undefined>, {
    result: string;
}, "json">;
export declare const DELETE_MESSAGES_NETWORK_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
    agentId: import("zod").ZodString;
} & {
    resourceId: import("zod").ZodOptional<import("zod").ZodString>;
}, "strip", import("zod").ZodTypeAny, {
    agentId: string;
    resourceId?: string | undefined;
}, {
    agentId: string;
    resourceId?: string | undefined;
}>, import("zod").ZodObject<{
    messageIds: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">, import("zod").ZodObject<{
        id: import("zod").ZodString;
    }, "strip", import("zod").ZodTypeAny, {
        id: string;
    }, {
        id: string;
    }>, import("zod").ZodArray<import("zod").ZodObject<{
        id: import("zod").ZodString;
    }, "strip", import("zod").ZodTypeAny, {
        id: string;
    }, {
        id: string;
    }>, "many">]>;
}, "strip", import("zod").ZodTypeAny, {
    messageIds: string | string[] | {
        id: string;
    } | {
        id: string;
    }[];
}, {
    messageIds: string | string[] | {
        id: string;
    } | {
        id: string;
    }[];
}>>, {
    message: string;
    success: boolean;
}, "json">;
//# sourceMappingURL=memory.d.ts.map