import * as childProcess from 'node:child_process'; /** * Pick out the lines in a chunk of cloudflared's stderr that report a real * problem. Everything cloudflared writes goes to stderr, so without this a * healthy tunnel's routine connection notices read as failures. */ export declare function cloudflaredErrorLines(chunk: string): string[]; declare class CloudflaredTunnel { private cloudflaredPath; private _token; private _url; private hostname; private running; private childProcess; private change; private error; constructor(cloudflaredPath?: string); get token(): string | undefined; get url(): string; /** * The local origin the tunnel points at. Left alone it stays on the * long-standing default of http://localhost:80, which is what every existing * install has been running with. */ set url(url: string | undefined); set token(token: string | undefined); checkInstalled(): boolean; emitChange(msg: string, code?: number): void; emitError(msg: string): void; onChange(change: (running: boolean, msg: string, code?: number) => void): void; onError(error: (msg: string) => void): void; start(): void; stop(): void; setChildProcess(childProcess: childProcess.ChildProcess | null): void; } export { CloudflaredTunnel }; //# sourceMappingURL=cloudflared-tunnel.d.ts.map