/** * Dashboard HTTP API for the customization center (built-in prompt/skill * overrides + sharing). Split out of dashboard.ts to keep that file lean. * * GET /api/customization — full snapshot for the page (fragments, * skills, master flag, history) * PUT /api/customization/enabled — { enabled: boolean } master switch * PUT /api/customization/prompt — { locale, key, value|null } * PUT /api/customization/condition — { key, value: boolean|null } * PUT /api/customization/skill — { name, body?: string|null, disabled?: boolean } * POST /api/customization/reset-all — wipe all overrides (snapshotted) * POST /api/customization/rollback — { id } * GET /api/customization/export — download a portable bundle * POST /api/customization/import — { json, apply?: boolean } → diff preview or apply * * Auth: dashboard.ts routes all non-PUBLIC_READ_PATHS writes through * decideDashboardAuth first, so every mutation here is already owner-gated. Only * the GET snapshot + GET export are reads. */ import type { IncomingMessage, ServerResponse } from 'node:http'; /** Returns true if it handled the request. */ export declare function handleCustomizationApi(req: IncomingMessage, res: ServerResponse, url: URL): Promise; //# sourceMappingURL=customization-api.d.ts.map