export interface Lease { ok: boolean; /** 失败时说明谁占着 */ holder?: string; release?: () => Promise; /** 同步释放(process.exit 会跳过 finally,必须留这条后门) */ releaseSync?: () => void; } /** * 拿写租约。拿到返回 ok=true,调用方必须在 finally 里 release()。 */ export declare function acquireWriteLease(key: string, command: string, ttlMs?: number): Promise; /** 判断某个平台是不是"写"通道(需要租约) */ export declare function writeLeaseKey(platform: string, account?: string): string;