import { Observable } from 'rxjs'; /** * Read `mikro.predeploy` from the project's package.json. Returns an * empty array if the file, the `mikro` field, or the `predeploy` field * is missing. Throws on malformed `predeploy` values. */ export declare function getPredeployCommands(projectRoot: string): string[]; export type HookEvent = { type: 'start'; command: string; } | { type: 'stdout'; command: string; chunk: Uint8Array; } | { type: 'stderr'; command: string; chunk: Uint8Array; } | { type: 'complete'; command: string; }; export declare class HookError extends Error { readonly command: string; readonly exitCode: number | null; readonly signal: NodeJS.Signals | null; constructor(command: string, exitCode: number | null, signal: NodeJS.Signals | null); } /** * Run `commands` sequentially, fail-fast. Unsubscribe cancels the in-flight * hook (via AbortController) and skips the rest. */ export declare function runHooks(commands: readonly string[], cwd: string): Observable; //# sourceMappingURL=runHooks.d.ts.map