export type MetaPlatform = 'facebook' | 'instagram' | 'threads'; export interface MetaTokenFreshness { state: 'unknown' | 'fresh' | 'expiring' | 'expired'; daysRemaining?: number; } /** 저장된 만료 시각만 보는 빠른 로컬 판정. 실제 유효성은 provider API가 최종 판정한다. */ export declare function metaTokenFreshness(expiresAt: string | undefined, now?: number): MetaTokenFreshness; export declare function metaExpiryMessage(expiresAt: string | undefined, fix: string): string; /** Provider 원문은 유지하되 access token 모양은 절대 오류 메시지에 남기지 않는다. */ export declare function redactMetaSecrets(message: string): string; /** Meta OAuth 만료/철회를 사용자가 바로 복구할 수 있는 명령으로 번역한다. */ export declare function metaApiError(platform: MetaPlatform, status: number, message: string, code?: number): Error;