import type { PolicyStore } from "@danielblomma/cortex-core/policy/store"; export type SyncResult = { success: boolean; synced: number; source: "cloud" | "local"; timestamp: string; error?: string; }; export type SyncContext = { instance_id?: string; session_id?: string; }; export declare function getLastSync(): SyncResult | null; /** * Pull org-wide policies from the Cortex Cloud API (connected edition). * The actual cloud API is built in Phase 4 — this sends a GET * and expects a JSON array of policy objects. */ export declare function syncFromCloud(endpoint: string, apiKey: string, store: PolicyStore, context?: SyncContext): Promise; /** * For air-gapped: just reload from local org-rules.yaml file. * Returns the count of policies found. */ export declare function syncFromLocal(store: PolicyStore): SyncResult; //# sourceMappingURL=sync.d.ts.map