/**
 * App settings database queries.
 *
 * Single-row table queries for global app configuration.
 *
 * @module
 */
import type { QueryDeps } from '../db/query_deps.js';
import type { AppSettings, AppSettingsWithUsernameJson } from './app_settings_schema.js';
/**
 * Load the current app settings.
 *
 * @param deps - query dependencies
 * @returns the app settings row
 * @throws Error if the singleton `app_settings` row is missing (migration drift — should not occur in practice)
 */
export declare const query_app_settings_load: (deps: QueryDeps) => Promise<AppSettings>;
/**
 * Load the current app settings with resolved updater username.
 *
 * @param deps - query dependencies
 * @returns the app settings with `updated_by_username`
 * @throws Error if the singleton `app_settings` row is missing
 */
export declare const query_app_settings_load_with_username: (deps: QueryDeps) => Promise<AppSettingsWithUsernameJson>;
/**
 * Update app settings and return the updated row.
 *
 * @param deps - query dependencies
 * @param open_signup - new value for the open_signup toggle
 * @param actor_id - the actor making the change
 * @returns the updated app settings row
 * @mutates `app_settings` row - sets `open_signup`, `updated_at`, and `updated_by`
 * @throws Error if the singleton `app_settings` row is missing
 */
export declare const query_app_settings_update: (deps: QueryDeps, open_signup: boolean, actor_id: string) => Promise<AppSettings>;
//# sourceMappingURL=app_settings_queries.d.ts.map