/** * 掘金适配器 * 认证方式: Cookie * 特殊: 需要 CSRF token 和 ImageX AWS4 图片上传 */ import type { IPlatformAdapter, Article, SyncResult, AuthResult, PlatformMeta } from './interface.js'; import type { RuntimeInterface } from '../runtime/index.js'; export declare class JuejinAdapter implements IPlatformAdapter { readonly meta: PlatformMeta; private runtime; private cookieData; private cachedCsrfToken; init(runtime: RuntimeInterface): Promise; private loadCookie; private buildCookieString; private getCommonHeaders; checkAuth(): Promise; /** * 获取 CSRF Token */ private getCsrfToken; publish(article: Article): Promise; }