import type { AppConfig } from "../config.js"; export type SafetyLevel = "read-only" | "safe-write" | "destructive" | "admin-only"; export declare const ACCESS_LEVEL: { readonly guest: 10; readonly reporter: 20; readonly developer: 30; readonly maintainer: 40; readonly owner: 50; }; export declare function assertWriteEnabled(config: AppConfig): void; export declare function assertDestructiveEnabled(config: AppConfig, confirmDestructive?: boolean): void; export declare function assertProjectAllowed(config: AppConfig, project: { id?: number; path_with_namespace?: string; namespace?: { full_path?: string; }; }): void; export declare function assertGroupAllowed(config: AppConfig, group: { id?: number; full_path?: string; }): void; export declare function assertMaxSize(size: number, maxSize: number, label: string): void; export declare function validateRepositoryPath(filePath: string): string; export declare function validateRef(ref: string): string; export declare function stripUnsafeText(text: string, maxLength?: number): string;