import { inspectOwnerPrivateLaunchdPlist, readOwnerPrivateLaunchdPlist } from "./background.js"; import type { BackgroundLifecycleTarget } from "./background.js"; import type { LaunchdLogMaintenanceDeps } from "./background-log-maintenance.js"; import type { LaunchctlRunner } from "./launchd.js"; import type { LaunchdWebMaintenanceInfo } from "./launchd.js"; import { verifyManagedRuntimeMaintenanceEntrypoint } from "./managed-runtime-maintenance-entry.js"; import type { WebLogMaintenanceCommandArgs } from "./web-log-maintenance-command.js"; import type { WebLogMaintenanceStatus } from "./web-log-maintenance-status.js"; export interface WebLogMaintenanceDependencies { readonly platform?: NodeJS.Platform; readonly runner?: LaunchctlRunner; readonly getuid?: () => number; readonly currentPid?: () => number; readonly now?: () => number; readonly sleep?: (milliseconds: number) => Promise; readonly isAlive?: (pid: number) => boolean; readonly homeDir?: string; readonly currentEntrypointPath?: string; readonly inspectHelperService?: (runner: LaunchctlRunner, uid: number) => Promise; readonly verifyEntrypoint?: typeof verifyManagedRuntimeMaintenanceEntrypoint; readonly readPlist?: typeof readOwnerPrivateLaunchdPlist; readonly verifyPlist?: typeof inspectOwnerPrivateLaunchdPlist; readonly acquireLifecycleLock?: (target: BackgroundLifecycleTarget) => Promise<(() => Promise) | undefined>; readonly maintenanceDeps?: LaunchdLogMaintenanceDeps; readonly writeStatus?: (path: string, status: WebLogMaintenanceStatus) => Promise; } /** * Authenticate the helper and paired main plist, then run the shared stopped- * writer protocol while holding only the web lifecycle lock. */ export declare function runWebLogMaintenanceCommand(args: WebLogMaintenanceCommandArgs, deps?: WebLogMaintenanceDependencies): Promise; //# sourceMappingURL=web-log-maintenance.d.ts.map