File
Blob: scripts/send-local-email.d.mts
| 1 | export interface DetectLocalEmailEndpointOptions { |
| 2 | candidatePorts?: number[]; |
| 3 | fetchImpl?: typeof fetch; |
| 4 | host?: string; |
| 5 | timeoutMs?: number; |
| 6 | } |
| 7 | |
| 8 | export interface ResolveEndpointOptions { |
| 9 | dryRun: boolean; |
| 10 | endpoint?: string; |
| 11 | } |
| 12 | |
| 13 | export interface ResolveEndpointDependencies { |
| 14 | detectEndpoint?: () => Promise<string>; |
| 15 | } |
| 16 | |
| 17 | export function detectLocalEmailEndpoint(options?: DetectLocalEmailEndpointOptions): Promise<string>; |
| 18 | |
| 19 | export function resolveEndpoint( |
| 20 | options: ResolveEndpointOptions, |
| 21 | dependencies?: ResolveEndpointDependencies, |
| 22 | ): Promise<string | null>; |