/** * Free-text address splitter — turn a single string like * `"123 Main St, Brooklyn NY 11201"` into `{ address, city, state, zip }`. * * Hoisted from zillow-mcp's `src/tools/address-parse.ts`. Other cohort * MCPs each have an ad-hoc inline split; redfin / compass / homes / * onehome all reinvent the same regex in slightly different shapes. * * Accepted shapes (all tested): * * - `"123 Main St, Brooklyn NY 11201"` (one comma) * - `"123 Main St, Brooklyn, NY 11201"` (two commas) * - `"123 Main St, Brooklyn NY"` (no zip) * - `"123 Main St, Brooklyn NY 11201-1234"` (zip+4) * - `"123 Main St"` (no comma) * * Returns an empty object for empty / whitespace-only input. */ export interface ParsedAddress { address?: string; city?: string; state?: string; zip?: string; } export declare function parseAddress(freetext: string): ParsedAddress;