export interface PulseOptions { interval?: string; url?: string; expect?: string; method?: string; headers?: Record; body?: string; ttl?: string; subdomain?: string; } export interface PulseResult { subdomain: string; publicUrl: string; mode: 'active' | 'expect'; intervalMs: number; target?: string; method?: string; autoStopAt: string | null; stopToken: string; pricing: { runsPerCredit: number; monthlyCapCredits: number; note: string; }; cost: number; balance: number; } export declare class PulseError extends Error { code: string; constructor(code: string, message?: string); } export declare function createPulse(opts: PulseOptions): Promise; export interface PulseConfig { mode: 'active' | 'expect'; intervalMs: number; url: string | null; method: string | null; bodyText: string | null; } /** The live schedule config of an owned pulse (url/method/body included). */ export declare function getPulseConfig(subdomain: string): Promise; /** * Edit a live pulse's schedule in place: run history, the URL, and the * billing window all stay; the next run/window is measured from now. */ export declare function updatePulse(subdomain: string, opts: { mode: 'active' | 'expect'; interval: string; url?: string; method?: string; body?: string; }): Promise<{ nextRunAt: string; }>;