import type { Manager } from './manager.js'; export type AllowedScripts = { kind: 'none'; } | { kind: 'patterns'; patterns: string[]; } | { error: string; kind: 'unreadable'; }; export declare const allowedScriptNames: (root: string) => AllowedScripts; export declare const matchesAllowed: (name: string, patterns: readonly string[]) => boolean; export type Rebuilt = { command: string; ok: boolean; output: string; }; export declare const rebuildAllowed: (root: string, runtime: Manager) => Promise;