/**
 * Query Optimizer Service
 *
 * Optimizes and normalizes search queries for different search types.
 * Handles cadastre format detection, address parsing, organization numbers, etc.
 */
/**
 * Remove special characters from text, keeping alphanumeric and Norwegian letters
 */
export declare const removeSpecialCharacters: (text: string) => string;
/**
 * Replace apostrophes in Sami names with regular letters
 */
export declare const replaceApostrophe: (query: string) => string;
/**
 * Check if query is an organization number (9 digits starting with 8 or 9)
 */
export declare const isOrganizationNumber: (query: string) => boolean;
/**
 * Check if query is a national ID number (11 digits)
 */
export declare const isNationalIDNumber: (query: string) => boolean;
/**
 * Check if query is an address (not a year or long number)
 */
export declare const isAddress: (query: string) => boolean;
/**
 * Check if query contains apostrophes (for Sami names)
 */
export declare const hasApostrophe: (query: string) => boolean;
/**
 * Find municipalities by name from a list
 * Note: In the new system, this would need municipality data
 */
export declare const findMunicipalitiesByName: (name: string, municipalityList?: Array<{
    name: string;
    number: string;
}>) => Array<{
    name: string;
    number: string;
}>;
/**
 * Optimize cadastre query
 * Handles municipality name conversion and format normalization
 */
export declare const optimizeCadastreQuery: (query: string, municipalityList?: Array<{
    name: string;
    number: string;
}>) => string;
/**
 * Optimize share query
 * Removes special characters
 */
export declare const optimizeShareQuery: (query: string) => string;
/**
 * Optimize address query
 * Can append municipality if in service context
 */
export declare const optimizeAddressQuery: (query: string, municipalityName?: string) => string;
/**
 * Main query optimization function
 * Routes to appropriate optimizer based on search type
 */
export declare const optimizeQuery: (query: string, searchType: string, options?: {
    municipalityList?: Array<{
        name: string;
        number: string;
    }>;
    municipalityName?: string;
}) => string;
/**
 * Detect query type based on format
 */
export declare const detectQueryType: (query: string) => string | null;
declare const _default: {
    optimizeQuery: (query: string, searchType: string, options?: {
        municipalityList?: Array<{
            name: string;
            number: string;
        }>;
        municipalityName?: string;
    }) => string;
    optimizeCadastreQuery: (query: string, municipalityList?: Array<{
        name: string;
        number: string;
    }>) => string;
    optimizeShareQuery: (query: string) => string;
    optimizeAddressQuery: (query: string, municipalityName?: string) => string;
    detectQueryType: (query: string) => string | null;
    isOrganizationNumber: (query: string) => boolean;
    isNationalIDNumber: (query: string) => boolean;
    isAddress: (query: string) => boolean;
    hasApostrophe: (query: string) => boolean;
    replaceApostrophe: (query: string) => string;
    removeSpecialCharacters: (text: string) => string;
};
export default _default;
