import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export declare enum MessagingConversation2 {
    True = "true",
    False = "false"
}
/**
 * Whether the conversation is private
 */
export type Private = boolean | MessagingConversation2;
export type MessagingConversation = {
    /**
     * Timestamp when the conversation was created
     */
    createdAt?: Date | null | undefined;
    /**
     * Unique identifier
     */
    id?: string | null | undefined;
    /**
     * Timestamp of the last message in the conversation
     */
    lastMessageAt?: Date | null | undefined;
    /**
     * Name or title of the conversation
     */
    name?: string | null | undefined;
    /**
     * List of participant user IDs in the conversation
     */
    participants?: Array<string> | null | undefined;
    /**
     * Whether the conversation is private
     */
    private?: boolean | MessagingConversation2 | null | undefined;
    /**
     * Provider's unique identifier
     */
    remoteId?: string | null | undefined;
};
/** @internal */
export declare const MessagingConversation2$inboundSchema: z.ZodNativeEnum<typeof MessagingConversation2>;
/** @internal */
export declare const MessagingConversation2$outboundSchema: z.ZodNativeEnum<typeof MessagingConversation2>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace MessagingConversation2$ {
    /** @deprecated use `MessagingConversation2$inboundSchema` instead. */
    const inboundSchema: z.ZodNativeEnum<typeof MessagingConversation2>;
    /** @deprecated use `MessagingConversation2$outboundSchema` instead. */
    const outboundSchema: z.ZodNativeEnum<typeof MessagingConversation2>;
}
/** @internal */
export declare const Private$inboundSchema: z.ZodType<Private, z.ZodTypeDef, unknown>;
/** @internal */
export type Private$Outbound = boolean | string;
/** @internal */
export declare const Private$outboundSchema: z.ZodType<Private$Outbound, z.ZodTypeDef, Private>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace Private$ {
    /** @deprecated use `Private$inboundSchema` instead. */
    const inboundSchema: z.ZodType<Private, z.ZodTypeDef, unknown>;
    /** @deprecated use `Private$outboundSchema` instead. */
    const outboundSchema: z.ZodType<Private$Outbound, z.ZodTypeDef, Private>;
    /** @deprecated use `Private$Outbound` instead. */
    type Outbound = Private$Outbound;
}
export declare function privateToJSON(value: Private): string;
export declare function privateFromJSON(jsonString: string): SafeParseResult<Private, SDKValidationError>;
/** @internal */
export declare const MessagingConversation$inboundSchema: z.ZodType<MessagingConversation, z.ZodTypeDef, unknown>;
/** @internal */
export type MessagingConversation$Outbound = {
    created_at?: string | null | undefined;
    id?: string | null | undefined;
    last_message_at?: string | null | undefined;
    name?: string | null | undefined;
    participants?: Array<string> | null | undefined;
    private?: boolean | string | null | undefined;
    remote_id?: string | null | undefined;
};
/** @internal */
export declare const MessagingConversation$outboundSchema: z.ZodType<MessagingConversation$Outbound, z.ZodTypeDef, MessagingConversation>;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export declare namespace MessagingConversation$ {
    /** @deprecated use `MessagingConversation$inboundSchema` instead. */
    const inboundSchema: z.ZodType<MessagingConversation, z.ZodTypeDef, unknown>;
    /** @deprecated use `MessagingConversation$outboundSchema` instead. */
    const outboundSchema: z.ZodType<MessagingConversation$Outbound, z.ZodTypeDef, MessagingConversation>;
    /** @deprecated use `MessagingConversation$Outbound` instead. */
    type Outbound = MessagingConversation$Outbound;
}
export declare function messagingConversationToJSON(messagingConversation: MessagingConversation): string;
export declare function messagingConversationFromJSON(jsonString: string): SafeParseResult<MessagingConversation, SDKValidationError>;
//# sourceMappingURL=messagingconversation.d.ts.map