import type { CliOptions, WarpGraphInstance } from '../types.ts';
import type { SyncRequest } from '../../../src/domain/capabilities/SyncCapability.ts';
type SyncStatusPayload = {
    graph: string;
    status: Awaited<ReturnType<WarpGraphInstance['status']>>;
};
type SyncRequestPayload = {
    graph: string;
    request: SyncRequest;
};
type SyncWithPayload = {
    graph: string;
    remote: string;
    applied: number;
    attempts: number;
    skippedWriters: Awaited<ReturnType<WarpGraphInstance['syncWith']>>['skippedWriters'];
    materialized: boolean;
};
type SyncPayload = SyncStatusPayload | SyncRequestPayload | SyncWithPayload;
export default function handleSync({ options, args }: {
    options: CliOptions;
    args: string[];
}): Promise<{
    payload: SyncPayload;
    exitCode: number;
}>;
export {};
