import type { TolkConstant } from './types';
/**
 * Extract all constants from Tolk source code
 *
 * @param tolkCode - The Tolk source code
 * @param predicate - Optional predicate function to filter constants
 * @returns Record mapping constant names to their values
 */
export declare function extractConstants(tolkCode: string, predicate?: (constant: TolkConstant) => boolean): Promise<Record<string, number>>;
/**
 * Extract error constants (constants starting with "ERROR_") from Tolk source code
 *
 * @param tolkCode - The Tolk source code
 * @returns Record mapping error constant names to their values
 */
export declare function extractErrorConstants(tolkCode: string): Promise<Record<string, number>>;
/**
 * Predicate function to filter error constants
 *
 * @param constant - The constant to check
 * @returns true if the constant is an error constant (starts with "ERROR_")
 */
export declare function isErrorConstant(constant: TolkConstant): boolean;
//# sourceMappingURL=constants-extractor.d.ts.map