/** * Utility functions for provider validation and error handling */ /** * Asserts that a provider is available and throws an error if not * @param provider - The provider to validate * @param providerName - Human-readable name for error messages * @returns The validated provider * @throws {Error} If provider is not available */ export declare const assertProvider: (provider: T | undefined, providerName: string) => T; /** * Creates a standardized error message for provider operations * @param operation - The operation that failed (e.g., 'connect', 'sign message') * @param providerName - The name of the provider * @param error - The original error * @returns A new Error with formatted message */ export declare const createProviderError: (operation: string, providerName: string, error: unknown) => Error;