import type { BaseCommand } from '../index.js'; export interface WorkspaceSnapshot { cleanup: () => Promise; dir: string; } /** * Clone the active workspace into a fresh OS tmp directory and return its path * along with a cleanup callback. Used by `qfg generate` so codegen works * without requiring `qfg pull` first or a long-lived `--dir` checkout. * * Mirrors `qfg pull`'s auth/clone path: resolves workspace from * QUONFIG_API_KEY/QUONFIG_WORKSPACE or active OAuth profile, mints a Gitea * read token (refreshing on 401), then `git clone`s into the tmp dir. The * caller is responsible for calling `cleanup()` in a `finally` block. */ export declare function fetchWorkspaceSnapshot(command: BaseCommand, options?: { workspace?: string; }): Promise;