/**
 * Shared helpers for local file parsing tools.
 * Extracted from localFileTools.ts for modularity.
 */
export declare function resolveLocalPath(inputPath: string): string;
export declare function clampInt(value: unknown, fallback: number, min: number, max: number): number;
export declare function truncateCell(value: unknown, maxChars: number): string | number | boolean | null;
export declare function toText(value: unknown): string;
export declare function toNumberOrNull(value: unknown): number | null;
export declare function toIntegerOrNull(value: unknown): number | null;
export declare function mean(nums: number[]): number;
export declare function pstdev(nums: number[]): number;
export declare function stdev(nums: number[]): number;
export type ColumnRef = string | number;
export declare const WHERE_OPS: readonly ["eq", "ne", "contains", "starts_with", "ends_with", "matches_regex", "gt", "gte", "lt", "lte", "is_empty", "not_empty", "is_even", "is_odd"];
type WhereOp = (typeof WHERE_OPS)[number];
export type WhereClause = {
    column: ColumnRef;
    op: WhereOp;
    value?: string | number | boolean | null;
    caseSensitive?: boolean;
};
export type CompiledWhereClause = {
    columnIndex: number;
    op: WhereClause["op"];
    value: WhereClause["value"];
    caseSensitive: boolean;
};
export declare function resolveColumnIndex(headers: string[], column: ColumnRef): number;
export declare function compileWhere(headers: string[], whereRaw: unknown): CompiledWhereClause[];
export declare function rowMatchesWhere(row: unknown[], where: CompiledWhereClause[]): boolean;
export declare function getXlsx(): Promise<any>;
export declare function getPapaParse(): Promise<any | null>;
export declare function getPdfParseModule(): Promise<any>;
export declare function getYauzl(): Promise<any>;
export declare function loadCsvTable(args: any, opts: {
    filePath: string;
    maxScanRows: number;
    maxCols: number;
    maxCellChars: number;
}): Promise<{
    encoding: BufferEncoding;
    hasHeader: boolean;
    delimiter: any;
    parseErrors: any[];
    headers: string[];
    dataRows: (string | number | boolean | null)[][];
}>;
export declare function loadXlsxTable(args: any, opts: {
    filePath: string;
    maxScanRows: number;
    maxCols: number;
    maxCellChars: number;
}): Promise<{
    sheets: string[];
    sheetName: any;
    headerRow: number;
    rangeA1: any;
    headers: string[];
    dataRows: (string | number | boolean | null)[][];
}>;
export {};
