import type { InstallState, PhaseId } from './types.js'; export declare class StateStore { private state; private readonly path; private dirty; constructor(cwd: string); /** * Strip any persisted-secret fields from a loaded state file. Older CLI * versions wrote `answers.superuserUrl` (which carries the superuser * password) into `.byline-install.json` — a file users are likely to * commit. If we find one, drop it and flag the state dirty so the next * `flush()` rewrites the file without the secret. */ private stripPersistedSecrets; /** * Every CLI release before database selection existed installed PostgreSQL. * Recover that implicit choice only when persisted database work proves this * is an existing installation; a genuinely fresh state must still prompt. */ private migrateLegacyDatabaseAdapter; private fresh; private load; get(): Readonly; patch(partial: Partial): void; patchAnswers(partial: InstallState['answers']): void; markPhaseComplete(id: PhaseId): void; isComplete(id: PhaseId): boolean; setWireSubEdit(key: string, status: 'pending' | 'done' | 'manual' | 'skipped'): void; flush(): void; filePath(): string; } //# sourceMappingURL=state.d.ts.map