import { z } from 'zod'; export interface BlockInlineAttrs { text?: string; } export interface BlockInline { type: string; attrs?: BlockInlineAttrs; } export interface MessageBlock { type: string; content?: BlockInline[]; value?: string; } export interface ChannelAccount { id: string; name: string; email: string; emailVerified: boolean; language: string; country: string; createdAt: number; } export interface Channel { id: string; name: string; botName?: string; color?: string; country?: string; homepageUrl?: string; timeZone?: string; state?: string; createdAt?: number; updatedAt?: number; } export type ChannelTalkChannel = Channel; export interface ChannelManager { id: string; channelId: string; accountId: string; name: string; email?: string; roleId?: string; removed?: boolean; createdAt?: number; } export interface ChannelGroup { id: string; channelId: string; title?: string; scope?: string; managerIds?: string[]; icon?: string; name: string; active?: boolean; createdAt?: number; updatedAt?: number; } export interface ChannelDirectChat { id: string; channelId: string; managerIds?: string[]; scope?: string; active?: boolean; createdAt?: number; updatedAt?: number; } export interface ChannelUserChat { id: string; channelId: string; state?: string; assigneeId?: string; createdAt?: number; updatedAt?: number; } export interface ChannelMessage { id: string; chatKey?: string; channelId?: string; chatType?: string; chatId?: string; personType?: string; personId?: string; requestId?: string; language?: string; createdAt?: number; blocks?: MessageBlock[]; plainText?: string; writingType?: string; version?: number; } export interface ChannelBot { id: string; channelId: string; name: string; avatarUrl?: string; } export interface ChannelSession { key: string; chatId: string; chatKey?: string; channelId?: string; alert?: number; unread?: number; readAt?: number; updatedAt?: number; } export interface ChannelSearchHighlight { name: string; fragments: string[]; } export interface ChannelSearchHit { index: string; score: string; source: ChannelMessage; highlight: Record; searchAfter: [number, string]; } export interface ChannelSearchResponse { hits: ChannelSearchHit[]; bots: ChannelBot[]; sessions: ChannelSession[]; directChats?: ChannelDirectChat[]; groups?: ChannelGroup[]; userChats?: ChannelUserChat[]; users?: Array<{ id: string; [key: string]: unknown; }>; } export interface ChannelWorkspaceEntry { workspace_id: string; workspace_name: string; account_id?: string; account_name?: string; account_cookie: string; session_cookie?: string; } export interface ChannelConfig { current: { workspace_id: string; } | null; workspaces: Record; } export interface ChannelCredentials { workspace_id: string; workspace_name: string; account_cookie: string; session_cookie?: string; } export interface ExtractedChannelToken { accountCookie: string; sessionCookie?: string; } export declare class ChannelError extends Error { code: string; constructor(message: string, code: string); } export declare const BlockInlineAttrsSchema: z.ZodObject<{ text: z.ZodOptional; }, z.core.$strip>; export declare const BlockInlineSchema: z.ZodObject<{ type: z.ZodString; attrs: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export declare const MessageBlockSchema: z.ZodObject<{ type: z.ZodString; content: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; value: z.ZodOptional; }, z.core.$strip>; export declare const ChannelWorkspaceEntrySchema: z.ZodObject<{ workspace_id: z.ZodString; workspace_name: z.ZodString; account_id: z.ZodOptional; account_name: z.ZodOptional; account_cookie: z.ZodString; session_cookie: z.ZodOptional; }, z.core.$strip>; export declare const ChannelConfigSchema: z.ZodObject<{ current: z.ZodNullable>; workspaces: z.ZodRecord; account_name: z.ZodOptional; account_cookie: z.ZodString; session_cookie: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export declare const ChannelCredentialsSchema: z.ZodObject<{ workspace_id: z.ZodString; workspace_name: z.ZodString; account_cookie: z.ZodString; session_cookie: z.ZodOptional; }, z.core.$strip>; export declare const ChannelAccountSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; email: z.ZodString; emailVerified: z.ZodBoolean; language: z.ZodString; country: z.ZodString; createdAt: z.ZodNumber; }, z.core.$strip>; export declare const ChannelSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; botName: z.ZodOptional; color: z.ZodOptional; country: z.ZodOptional; homepageUrl: z.ZodOptional; timeZone: z.ZodOptional; state: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, z.core.$strip>; export declare const ChannelManagerSchema: z.ZodObject<{ id: z.ZodString; channelId: z.ZodString; accountId: z.ZodString; name: z.ZodString; email: z.ZodOptional; roleId: z.ZodOptional; removed: z.ZodOptional; createdAt: z.ZodOptional; }, z.core.$strip>; export declare const ChannelGroupSchema: z.ZodObject<{ id: z.ZodString; channelId: z.ZodString; title: z.ZodOptional; scope: z.ZodOptional; managerIds: z.ZodOptional>; icon: z.ZodOptional; name: z.ZodString; active: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, z.core.$strip>; export declare const ChannelDirectChatSchema: z.ZodObject<{ id: z.ZodString; channelId: z.ZodString; managerIds: z.ZodOptional>; scope: z.ZodOptional; active: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, z.core.$strip>; export declare const ChannelUserChatSchema: z.ZodObject<{ id: z.ZodString; channelId: z.ZodString; state: z.ZodOptional; assigneeId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, z.core.$strip>; export declare const ChannelMessageSchema: z.ZodObject<{ id: z.ZodString; chatKey: z.ZodOptional; channelId: z.ZodOptional; chatType: z.ZodOptional; chatId: z.ZodOptional; personType: z.ZodOptional; personId: z.ZodOptional; requestId: z.ZodOptional; language: z.ZodOptional; createdAt: z.ZodOptional; blocks: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; value: z.ZodOptional; }, z.core.$strip>>>; plainText: z.ZodOptional; writingType: z.ZodOptional; version: z.ZodOptional; }, z.core.$strip>; export declare const ChannelBotSchema: z.ZodObject<{ id: z.ZodString; channelId: z.ZodString; name: z.ZodString; avatarUrl: z.ZodOptional; }, z.core.$strip>; export declare const ChannelSessionSchema: z.ZodObject<{ key: z.ZodString; chatId: z.ZodString; chatKey: z.ZodOptional; channelId: z.ZodOptional; alert: z.ZodOptional; unread: z.ZodOptional; readAt: z.ZodOptional; updatedAt: z.ZodOptional; }, z.core.$strip>; export declare const ChannelSearchHighlightSchema: z.ZodObject<{ name: z.ZodString; fragments: z.ZodArray; }, z.core.$strip>; export declare const ChannelSearchHitSchema: z.ZodObject<{ index: z.ZodString; score: z.ZodString; source: z.ZodObject<{ id: z.ZodString; chatKey: z.ZodOptional; channelId: z.ZodOptional; chatType: z.ZodOptional; chatId: z.ZodOptional; personType: z.ZodOptional; personId: z.ZodOptional; requestId: z.ZodOptional; language: z.ZodOptional; createdAt: z.ZodOptional; blocks: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; value: z.ZodOptional; }, z.core.$strip>>>; plainText: z.ZodOptional; writingType: z.ZodOptional; version: z.ZodOptional; }, z.core.$strip>; highlight: z.ZodRecord; }, z.core.$strip>>; searchAfter: z.ZodTuple<[z.ZodNumber, z.ZodString], null>; }, z.core.$strip>; export declare const ChannelSearchResponseSchema: z.ZodObject<{ hits: z.ZodArray; channelId: z.ZodOptional; chatType: z.ZodOptional; chatId: z.ZodOptional; personType: z.ZodOptional; personId: z.ZodOptional; requestId: z.ZodOptional; language: z.ZodOptional; createdAt: z.ZodOptional; blocks: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; value: z.ZodOptional; }, z.core.$strip>>>; plainText: z.ZodOptional; writingType: z.ZodOptional; version: z.ZodOptional; }, z.core.$strip>; highlight: z.ZodRecord; }, z.core.$strip>>; searchAfter: z.ZodTuple<[z.ZodNumber, z.ZodString], null>; }, z.core.$strip>>; bots: z.ZodArray; }, z.core.$strip>>; sessions: z.ZodArray; channelId: z.ZodOptional; alert: z.ZodOptional; unread: z.ZodOptional; readAt: z.ZodOptional; updatedAt: z.ZodOptional; }, z.core.$strip>>; directChats: z.ZodOptional>; scope: z.ZodOptional; active: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, z.core.$strip>>>; groups: z.ZodOptional; scope: z.ZodOptional; managerIds: z.ZodOptional>; icon: z.ZodOptional; name: z.ZodString; active: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, z.core.$strip>>>; userChats: z.ZodOptional; assigneeId: z.ZodOptional; createdAt: z.ZodOptional; updatedAt: z.ZodOptional; }, z.core.$strip>>>; users: z.ZodOptional>>; }, z.core.$strip>; export declare const ExtractedChannelTokenSchema: z.ZodObject<{ accountCookie: z.ZodString; sessionCookie: z.ZodOptional; }, z.core.$strip>; //# sourceMappingURL=types.d.ts.map