import { a as Airport, P as ParseResult } from './types-CTiQIk4w.cjs'; /** * Check if code is a valid airport (auto-detects IATA/ICAO by length) * @example * airport.is("LAX") // true (IATA - 3 chars) * airport.is("KLAX") // true (ICAO - 4 chars) */ declare function is(code: string): boolean; /** * Get airport data (auto-detects IATA/ICAO by length) * @example * airport.get("LAX") // Airport data * airport.get("KLAX") // Airport data */ declare function get(code: string): Airport | undefined; /** * Parse and validate (auto-detects IATA/ICAO by length) * @example * const result = airport.parse("LAX"); * if (result.ok) console.log(result.data.name); */ declare function parse(code: string): ParseResult; /** * Search airports by name, city, country code, or airport code * @example * airport.search("Los Angeles") * airport.search("US", { limit: 5 }) */ declare function search(query: string, options?: { limit?: number; }): Airport[]; declare const airport: { is: typeof is; get: typeof get; parse: typeof parse; search: typeof search; iata: { /** Check if code matches IATA format (3 letters, no database lookup) */ isFormat: (code: string) => boolean; /** Check if code exists in database */ is: (code: string) => boolean; /** Get airport data or undefined */ get: (code: string) => Airport | undefined; /** Parse and validate, returning result object */ parse: (code: string) => ParseResult; /** All IATA codes */ codes: () => string[]; /** Count of IATA codes */ count: () => number; }; icao: { /** Check if code matches ICAO format (4 letters, no database lookup) */ isFormat: (code: string) => boolean; /** Check if code exists in database */ is: (code: string) => boolean; /** Get airport data or undefined */ get: (code: string) => Airport | undefined; /** Parse and validate, returning result object */ parse: (code: string) => ParseResult; /** All ICAO codes */ codes: () => string[]; /** Count of ICAO codes */ count: () => number; }; }; export { Airport, airport };