import { type ConfigDocumentPort, type RuntimeConfigDocument } from '@zhin.js/runtime'; export declare const processRestartExitCode = 75; /** Storm guard parity with the `zhin start` daemon: 10 restarts/minute, 3s delay. */ export declare const MAX_RESPAWNS_PER_MINUTE = 10; export declare const RESPAWN_DELAY_MS = 3000; export interface RespawnPlan { readonly respawn: boolean; readonly attempts: readonly number[]; } /** * Pure backoff decision for native-TS child respawns. * `attempts` holds timestamps of respawns already scheduled; `once` mode never * respawns. Exit 75 (restartRequired) always respawns (subject to the storm * budget); in daemon mode any crash (non-zero exit / signal) also respawns. * Exceeding the per-minute budget stops respawning and the parent exits. */ export declare function planRespawn(exitCode: number | null, once: boolean, daemon: boolean, attempts: readonly number[], now?: number): RespawnPlan; export interface StartCommandOptions { readonly root: string; readonly args: readonly string[]; writeOutput(value: string): void; writeError(value: string): void; } export declare function runStartCommand(options: StartCommandOptions): Promise; /** * Endpoint Owner(master)/ trusted 解析器。 * Owner 来源:plugins..master、plugins..endpoints[].owner(+ name 别名键)。 * trusted 来源:plugins..trusted、plugins..endpoints[].trusted(数组或空白/逗号分隔字符串), * 对齐 legacy resolveSenderRoles 的 endpoint $config.trusted 语义。 */ export declare function createEndpointRoleResolver(config: RuntimeConfigDocument | ConfigDocumentPort): Promise<{ resolveOwner: (adapterLocalName: string, endpointId: string) => string | undefined; resolveTrusted: (adapterLocalName: string, endpointId: string) => readonly string[]; }>; //# sourceMappingURL=start-command.d.ts.map