/**
 * 发布相关共用类型定义
 * 用于 useHomeController 和 usePublishController 之间共享
 */

/** 发布平台账号 */
export interface PublishAccount {
    platform: string;
    name: string;
    logged_in: boolean;
    enabled: boolean;
}

/** 可发布的视频 */
export interface PublishVideo {
    id: string;
    name: string;
    path: string;
}

/** 发布预加载缓存 */
export interface PublishPrefetchCache {
    ts: number;
    accounts?: PublishAccount[];
    videos?: PublishVideo[];
}

/** 发布结果 */
export interface PublishResult {
    platform: string;
    success: boolean;
    message: string;
    url?: string | null;
    screenshot_url?: string;
}
