import { z } from "zod"; export declare const SyncGithubSshKeysResponseSchema: z.ZodObject<{ synced_count: z.ZodNumber; keys_added: z.ZodNumber; keys_updated: z.ZodNumber; keys_removed: z.ZodNumber; errors: z.ZodDefault>; }, z.core.$strip>; export type SyncGithubSshKeysResponse = z.infer; /** * Sync SSH keys from the user's linked GitHub account * * Fetches SSH keys from the authenticated user's linked GitHub account and * synchronises them. New keys are added, existing keys are updated, and * keys removed from GitHub are revoked locally. * * @example * ```typescript * import { createClient, syncGithubSshKeys } from '@phala/cloud' * * const client = createClient({ apiKey: 'your-api-key' }) * const result = await syncGithubSshKeys(client) * console.log(`Added: ${result.keys_added}, Removed: ${result.keys_removed}`) * ``` * * ## Safe Version * * ```typescript * const result = await safeSyncGithubSshKeys(client) * if (result.success) { * console.log('Synced', result.data.synced_count, 'key(s)') * } else { * console.error(result.error.message) * } * ``` */ declare const syncGithubSshKeys: { (client: import("../..").BaseClient, parameters: { schema: false; }): Promise; (client: import("../..").BaseClient, parameters: { schema: T; }): Promise>; (client: import("../..").BaseClient): Promise<{ synced_count: number; keys_added: number; keys_updated: number; keys_removed: number; errors: string[]; }>; }, safeSyncGithubSshKeys: { (client: import("../..").BaseClient, parameters: { schema: false; }): Promise>; (client: import("../..").BaseClient, parameters: { schema: T; }): Promise>>; (client: import("../..").BaseClient): Promise>; }; export { syncGithubSshKeys, safeSyncGithubSshKeys };