import * as z from "zod";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { OpenAIChatCompletionMessage, OpenAIChatCompletionMessage$Outbound } from "./openaichatcompletionmessage.js";
import { OpenAIExtendedMessage, OpenAIExtendedMessage$Outbound } from "./openaiextendedmessage.js";
export declare const OpenAIConversationType: {
    readonly Openai: "openai";
};
export type OpenAIConversationType = ClosedEnum<typeof OpenAIConversationType>;
export declare const OpenAIConversationVisibility: {
    readonly Private: "private";
    readonly Public: "public";
};
export type OpenAIConversationVisibility = ClosedEnum<typeof OpenAIConversationVisibility>;
export type OpenAIConversation = {
    id: string;
    externalId: string | null;
    externalUrl: string | null;
    type: OpenAIConversationType;
    supportTicketConversationId: string | null;
    createdAt: string;
    updatedAt: string;
    projectId: string | null;
    integrationId: string | null;
    /**
     * A customizable collection of custom properties or attributes.
     */
    properties?: {
        [k: string]: any;
    } | null | undefined;
    /**
     * A customizable collection of custom properties or attributes.
     */
    userProperties?: {
        [k: string]: any;
    } | null | undefined;
    tags?: Array<string> | null | undefined;
    visibility: OpenAIConversationVisibility | null;
    /**
     * The messages in the conversation. Must be at least one message.
     */
    messages: Array<OpenAIExtendedMessage>;
    messagesOpenAIFormat: Array<OpenAIChatCompletionMessage>;
};
/** @internal */
export declare const OpenAIConversationType$inboundSchema: z.ZodNativeEnum<typeof OpenAIConversationType>;
/** @internal */
export declare const OpenAIConversationType$outboundSchema: z.ZodNativeEnum<typeof OpenAIConversationType>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace OpenAIConversationType$ {
    /** @deprecated use `OpenAIConversationType$inboundSchema` instead. */
    const inboundSchema: z.ZodNativeEnum<{
        readonly Openai: "openai";
    }>;
    /** @deprecated use `OpenAIConversationType$outboundSchema` instead. */
    const outboundSchema: z.ZodNativeEnum<{
        readonly Openai: "openai";
    }>;
}
/** @internal */
export declare const OpenAIConversationVisibility$inboundSchema: z.ZodNativeEnum<typeof OpenAIConversationVisibility>;
/** @internal */
export declare const OpenAIConversationVisibility$outboundSchema: z.ZodNativeEnum<typeof OpenAIConversationVisibility>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace OpenAIConversationVisibility$ {
    /** @deprecated use `OpenAIConversationVisibility$inboundSchema` instead. */
    const inboundSchema: z.ZodNativeEnum<{
        readonly Private: "private";
        readonly Public: "public";
    }>;
    /** @deprecated use `OpenAIConversationVisibility$outboundSchema` instead. */
    const outboundSchema: z.ZodNativeEnum<{
        readonly Private: "private";
        readonly Public: "public";
    }>;
}
/** @internal */
export declare const OpenAIConversation$inboundSchema: z.ZodType<OpenAIConversation, z.ZodTypeDef, unknown>;
/** @internal */
export type OpenAIConversation$Outbound = {
    id: string;
    externalId: string | null;
    externalUrl: string | null;
    type: string;
    supportTicketConversationId: string | null;
    createdAt: string;
    updatedAt: string;
    projectId: string | null;
    integrationId: string | null;
    properties?: {
        [k: string]: any;
    } | null | undefined;
    userProperties?: {
        [k: string]: any;
    } | null | undefined;
    tags?: Array<string> | null | undefined;
    visibility: string | null;
    messages: Array<OpenAIExtendedMessage$Outbound>;
    messagesOpenAIFormat: Array<OpenAIChatCompletionMessage$Outbound>;
};
/** @internal */
export declare const OpenAIConversation$outboundSchema: z.ZodType<OpenAIConversation$Outbound, z.ZodTypeDef, OpenAIConversation>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace OpenAIConversation$ {
    /** @deprecated use `OpenAIConversation$inboundSchema` instead. */
    const inboundSchema: z.ZodType<OpenAIConversation, z.ZodTypeDef, unknown>;
    /** @deprecated use `OpenAIConversation$outboundSchema` instead. */
    const outboundSchema: z.ZodType<OpenAIConversation$Outbound, z.ZodTypeDef, OpenAIConversation>;
    /** @deprecated use `OpenAIConversation$Outbound` instead. */
    type Outbound = OpenAIConversation$Outbound;
}
export declare function openAIConversationToJSON(openAIConversation: OpenAIConversation): string;
export declare function openAIConversationFromJSON(jsonString: string): SafeParseResult<OpenAIConversation, SDKValidationError>;
//# sourceMappingURL=openaiconversation.d.ts.map