/** * Datadir discovery for `qfg serve`. * * Resolution order (plan §4): * 1. --datadir flag * 2. QUONFIG_DIR env var * 3. ./our-config if present * 4. ./.quonfig if present * 5. error * * Kept narrow on purpose: `qfg pull`/`qfg push` use a richer * `resolveWorkspaceDir` helper that walks up looking for `quonfig.json` — but * `qfg serve` is intentionally cwd-relative (the user said "serve THIS dir") * and the walk would surface a confusing path on a misconfigured repo. The * default-pair lookup mirrors `qfg pull --dir` defaults documented in the * plan. */ export declare const DEFAULT_DATADIR_CANDIDATES: readonly ["our-config", ".quonfig"]; export declare const NO_DATADIR_ERROR: string; export interface ResolveDatadirInput { cwd: string; envDatadir: string | undefined; flagDatadir: string | undefined; } export type ResolveDatadirResult = { kind: 'ok'; dir: string; source: 'flag' | 'env' | 'cwd-default'; } | { kind: 'error'; message: string; }; export declare const resolveDatadirForServe: (input: ResolveDatadirInput) => ResolveDatadirResult;