import { z } from "zod"; export declare const SERVER_PROFILE_METADATA_VERSION = 2; export declare const ServerProfileIdentitySchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"production">; id: z.ZodLiteral<"production">; }, "strip", z.ZodTypeAny, { kind: "production"; id: "production"; }, { kind: "production"; id: "production"; }>, z.ZodObject<{ kind: z.ZodLiteral<"development">; id: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "development"; id: string; }, { kind: "development"; id: string; }>]>; export type ServerProfileIdentity = z.infer; export declare const ServerInstanceIdentitySchema: z.ZodObject<{ profile: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"production">; id: z.ZodLiteral<"production">; }, "strip", z.ZodTypeAny, { kind: "production"; id: "production"; }, { kind: "production"; id: "production"; }>, z.ZodObject<{ kind: z.ZodLiteral<"development">; id: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "development"; id: string; }, { kind: "development"; id: string; }>]>; instanceId: z.ZodString; url: z.ZodEffects; protocolVersion: z.ZodString; buildId: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; profile: { kind: "production"; id: "production"; } | { kind: "development"; id: string; }; instanceId: string; protocolVersion: string; buildId: string; }, { url: string; profile: { kind: "production"; id: "production"; } | { kind: "development"; id: string; }; instanceId: string; protocolVersion: string; buildId: string; }>; export type ServerInstanceIdentity = z.infer; export declare const ServerProfileMetadataRecordSchema: z.ZodObject<{ profile: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"production">; id: z.ZodLiteral<"production">; }, "strip", z.ZodTypeAny, { kind: "production"; id: "production"; }, { kind: "production"; id: "production"; }>, z.ZodObject<{ kind: z.ZodLiteral<"development">; id: z.ZodString; }, "strip", z.ZodTypeAny, { kind: "development"; id: string; }, { kind: "development"; id: string; }>]>; instanceId: z.ZodString; url: z.ZodEffects; protocolVersion: z.ZodString; buildId: z.ZodString; } & { version: z.ZodLiteral<2>; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; profile: { kind: "production"; id: "production"; } | { kind: "development"; id: string; }; instanceId: string; protocolVersion: string; buildId: string; version: 2; updatedAt: string; }, { url: string; profile: { kind: "production"; id: "production"; } | { kind: "development"; id: string; }; instanceId: string; protocolVersion: string; buildId: string; version: 2; updatedAt: string; }>; export type ServerProfileMetadataRecord = z.infer; export interface ServerProfileMetadataDiagnostic { code: string; field?: string; source?: string; } export type ParseServerProfileMetadataRecordResult = { ok: true; record: ServerProfileMetadataRecord; } | { ok: false; diagnostics: ServerProfileMetadataDiagnostic[]; }; export declare function parseServerProfileMetadataRecord(input: string, options: { expectedProfile: ServerProfileIdentity; nowMs?: number; maxBytes?: number; source?: string; }): ParseServerProfileMetadataRecordResult; //# sourceMappingURL=serverProfile.d.ts.map