import { type ServiceDefinitionInput } from "@cotal-ai/workspace"; import { ProtectedRecordStore, type LocalRecordSnapshot } from "./protected-records.js"; export type ServiceDefinitionSnapshot = LocalRecordSnapshot; /** Installed adapter metadata is required before saving adapter options; executable imports are not validation. */ export declare function validateServiceDefinition(input: unknown, space: string, checkReferences?: boolean): ServiceDefinitionInput; export declare const serviceDefinitionStore: (space: string) => ProtectedRecordStore; export declare function importServiceDefinition(path: string, space: string): ServiceDefinitionInput; /** Public reports omit argument bodies, adapter option values and all credential contents. */ export declare function serviceDefinitionProjection(row: ServiceDefinitionSnapshot): { name: string; revision: string; space: string; executionHost: "this-machine"; launch: { type: "process"; executable: string; argumentCount: number; cwd: string; adapter?: undefined; optionCount?: undefined; } | { type: "adapter"; adapter: string; optionCount: number; executable?: undefined; argumentCount?: undefined; cwd?: undefined; }; readiness: { readonly type: "process"; readonly timeoutMs: number; } | { readonly type: "adapter"; readonly timeoutMs: number; } | { type: "http"; timeoutMs: number; expectedStatus: number; url: string; }; environmentReferences: Readonly>; credentialRef: { readonly kind: "file"; readonly path: string; } | undefined; referenceValidation: "not-checked"; liveState: "not-checked"; }; //# sourceMappingURL=service-definitions.d.ts.map