import type { ThreadsConfig } from './config.js'; export interface ThreadsAccount { id: string; username: string; name?: string; threads_profile_picture_url?: string; threads_biography?: string; } export declare function getAccount(cfg: ThreadsConfig): Promise; export declare function fetchUserId(accessToken: string): Promise; export interface RefreshedToken { accessToken: string; expiresInSeconds: number; } /** 만료 전 long-lived Threads 토큰을 새 60일 토큰으로 갱신한다. */ export declare function refreshAccessToken(accessToken: string): Promise; export interface PublishResult { id: string; permalink?: string; } /** 텍스트 전용 게시 — Threads 의 핵심 유스케이스. imageUrl 을 주면 이미지 게시. */ export declare function postText(cfg: ThreadsConfig, text: string, imageUrl?: string): Promise; /** public URL의 영상을 Threads 미디어 컨테이너로 만든 뒤 처리 완료 후 게시한다. */ export declare function postVideo(cfg: ThreadsConfig, videoUrl: string, text?: string, altText?: string): Promise; export declare function postCarousel(cfg: ThreadsConfig, imageUrls: string[], text: string): Promise;