import { z } from "zod"; import type { OrgAuth } from "../../auth/sf-auth.ts"; import { queryCount, queryIds } from "../../seed/extract.ts"; import { type Session } from "../../seed/session.ts"; export declare const SeedArgs: z.ZodObject<{ action: z.ZodEnum<["start", "analyze", "select", "dry_run", "run", "recover_validation_rules"]>; sessionId: z.ZodOptional; sourceOrg: z.ZodOptional; targetOrg: z.ZodOptional; object: z.ZodOptional; whereClause: z.ZodOptional; limit: z.ZodOptional; sampleSize: z.ZodOptional; includeOptionalParents: z.ZodOptional>; includeOptionalChildren: z.ZodOptional>; includeManagedPackages: z.ZodOptional; includeSystemChildren: z.ZodOptional; confirm: z.ZodOptional>; disableValidationRulesOnRun: z.ZodOptional; childLookups: z.ZodOptional>>; isolateIdMap: z.ZodOptional; upsertKeyOverrides: z.ZodOptional>; mask: z.ZodOptional; maskFields: z.ZodOptional; }, "strip", z.ZodTypeAny, { field: string; strategy: "email" | "phone" | "person-name" | "street-address" | "postal-code" | "generic-text" | "auto" | "copy"; }, { field: string; strategy: "email" | "phone" | "person-name" | "street-address" | "postal-code" | "generic-text" | "auto" | "copy"; }>]>, "many">>>; }, "strip", z.ZodTypeAny, { action: "start" | "analyze" | "select" | "dry_run" | "run" | "recover_validation_rules"; object?: string | undefined; sourceOrg?: string | undefined; targetOrg?: string | undefined; whereClause?: string | undefined; limit?: number | undefined; disableValidationRulesOnRun?: boolean | undefined; childLookups?: Record | undefined; isolateIdMap?: boolean | undefined; upsertKeyOverrides?: Record | undefined; maskFields?: Record | undefined; sessionId?: string | undefined; sampleSize?: number | undefined; includeOptionalParents?: string[] | undefined; includeOptionalChildren?: string[] | undefined; includeManagedPackages?: boolean | undefined; includeSystemChildren?: boolean | undefined; confirm?: true | undefined; mask?: boolean | undefined; }, { action: "start" | "analyze" | "select" | "dry_run" | "run" | "recover_validation_rules"; object?: string | undefined; sourceOrg?: string | undefined; targetOrg?: string | undefined; whereClause?: string | undefined; limit?: number | undefined; disableValidationRulesOnRun?: boolean | undefined; childLookups?: Record | undefined; isolateIdMap?: boolean | undefined; upsertKeyOverrides?: Record | undefined; maskFields?: Record | undefined; sessionId?: string | undefined; sampleSize?: number | undefined; includeOptionalParents?: string[] | undefined; includeOptionalChildren?: string[] | undefined; includeManagedPackages?: boolean | undefined; includeSystemChildren?: boolean | undefined; confirm?: true | undefined; mask?: boolean | undefined; }>; export type SeedArgsT = z.infer; /** Overrides for tests — allow injecting the session root, describe caches, and fetch. */ export type SeedOverrides = { sessionRootDir?: string; cacheRoot?: string; fetchFn?: typeof fetch; /** If provided, skips resolveAuth() for the given alias. */ authBySource?: OrgAuth; authByTarget?: OrgAuth; }; export type SeedResponse = { sessionId: string; step: Session["step"]; action: SeedArgsT["action"]; summary: Record; nextAction: SeedArgsT["action"] | null; guidance: string; }; export declare function seed(args: SeedArgsT, overrides?: SeedOverrides): Promise; /** * Probe the target org for the identity bits the project-level id-map needs * to detect "swapped to a different org" or "sandbox was refreshed". One * SOQL hit; cheap. Cached upstream so the start step pays it once. */ export declare function getTargetIdentity(opts: { auth: OrgAuth; fetchFn?: typeof fetch; }): Promise<{ orgId: string; lastRefreshDate: string | null; }>; export declare const _internal: { queryCount: typeof queryCount; queryIds: typeof queryIds; };