import { Identity } from '@dfinity/agent';
import { _SERVICE } from '../declarations/oauth_backend/oauth_backend.did.js';
import { Principal } from '@dfinity/principal';
/**
 * Fetches metadata from ICRC ledgers and saves it to the local prometheus-tokens.json file.
 * This overwrites the file completely to ensure it's always in sync with the provided list.
 * @param tokenPrincipals An array of Principals for the token canisters to sync.
 */
export declare function syncTokenConfig(tokenPrincipals: Principal[]): Promise<void>;
/**
 * Gets the currently selected DFX identity.
 */
export declare function getDfxIdentity(): Identity;
/**
 * Adds patterns to the .gitignore file if they don't already exist.
 */
export declare function updateGitignore(patterns: string[]): Promise<void>;
/**
 * Safely updates a .env file by merging new values with existing ones.
 */
export declare function updateEnvFile(newData: Record<string, string>): void;
/**
 * Creates an authenticated actor for the Prometheus backend canister.
 */
export declare function createPrometheusActor(): Promise<_SERVICE>;
/**
 * Returns a clean list of all available dfx identity names.
 */
export declare function getDfxIdentitiesList(): string[];
