import type { JsonObj } from '../result.js'; import { BaseCommand } from '../index.js'; export default class Sync extends BaseCommand { static description: string; static examples: string[]; static flags: { dir: import("@oclif/core/lib/interfaces/parser.js").OptionFlag; interval: import("@oclif/core/lib/interfaces/parser.js").OptionFlag; watch: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag; }; private orgSlug; private resolvedDir; private workspaceId; run(): Promise; private ensureRemoteUrl; private looksLike401; private refreshToken; private runSync; /** * Point `origin` at `repoUrl`, but refuse first if the dir already has a * remote pointing at a DIFFERENT workspace (qfg-08i). Without this guard, * `qfg sync --dir ./our-config` under an unrelated active profile silently * rewrites origin to the wrong repo and fetches it in, producing phantom * "diverged" state. Mirrors the guard `qfg pull` runs (qfg-glrd.3). */ private setRemoteGuarded; }