import type { App } from "../core/app.js";
import type { RequestEvent } from "../core/event_request.js";
import type { RouterGroup } from "../tools/router/group.js";
import { ValidationErrors } from "../internal/compat/validation.js";
export declare function bindCollectionApi(app: App, rg: RouterGroup<RequestEvent>): void;
export declare function readRequestData(event: RequestEvent): Promise<Record<string, unknown>>;
export declare function extractValidationErrors(err: unknown): ValidationErrors | null;
export declare function requireSuperuser(event: RequestEvent): Response | null;
