import { Terminal } from "@xterm/xterm";
import { EventSourceOptions } from "./LogView.types";
export declare const ENCODED_NEWLINE = 10;
export declare const ENCODED_CARRIAGE_RETURN = 13;
export declare const SEARCH_BAR_HEIGHT = 45;
/**
 * Create an event source connection to stream logs
 * @param url The URL to connect to
 * @param options The options for the connection
 * @param terminal Terminal instance to append logs to directly
 * @returns Function to close/abort the connection
 */
export declare const eventsource: (url: string | URL, options: EventSourceOptions, terminal: Terminal) => () => void;
type KeyboardAction = Pick<KeyboardEvent, "ctrlKey" | "shiftKey" | "key" | "metaKey">;
export declare const customShortcutsForMac: KeyboardAction[];
export declare const customShortcutsForWin: KeyboardAction[];
export declare const isCustomKeyboardAction: (event: KeyboardEvent, actions: KeyboardAction[]) => boolean;
export declare const isMacOS: () => boolean;
export declare const scrollPages: (direction: "up" | "down", terminal: Terminal | null | undefined) => void;
export declare const scrollLines: (direction: "up" | "down", terminal: Terminal | null | undefined) => void;
export declare const selectAll: (terminal: Terminal | null | undefined) => void;
export declare const copySelectLines: (terminal: Terminal | null | undefined) => void;
export {};
