/** * Testing Utilities for Host Router * * Helper functions for testing host routing. */ export interface CreateTestRequestOptions { host: string; path?: string; method?: string; cookies?: Record; headers?: Record; } /** * Create a test request with specific host and cookies * * @example * ```ts * const request = createTestRequest({ * host: 'admin.example.com', * path: '/dashboard', * cookies: { 'x-requested-host': 'api.example.com' } * }); * ``` */ export declare function createTestRequest(options: CreateTestRequestOptions): Request; /** * Test if a pattern matches a hostname * * @example * ```ts * expect(testPattern('admin.*', 'admin.example.com')).toBe(true); * expect(testPattern(['*', 'www.*'], 'example.com')).toBe(true); * ``` */ export declare function testPattern(pattern: string | string[], hostname: string): boolean; //# sourceMappingURL=testing.d.ts.map