import { TSingleResource } from '../../localTypes/k8s';
type TWatchPhase = 'ADDED' | 'MODIFIED' | 'DELETED' | 'BOOKMARK';
type TInitialFrame = {
    type: 'INITIAL';
    items: TSingleResource[];
    continue?: string;
    remainingItemCount?: number;
    resourceVersion?: string;
};
type TPageFrame = {
    type: 'PAGE';
    items: TSingleResource[];
    continue?: string;
    remainingItemCount?: number;
};
type TPageErrorFrame = {
    type: 'PAGE_ERROR';
    error: string;
};
type TDeltaFrame = {
    type: TWatchPhase;
    item: TSingleResource;
};
type TConsoleFrame = {
    type: 'SERVER_LOG';
    level: 'info' | 'warn' | 'error';
    message: string;
};
type TInitialError = {
    type: 'INITIAL_ERROR';
    message: string;
    statusCode?: number;
    reason?: string;
};
export type TServerFrame = TInitialFrame | TPageFrame | TPageErrorFrame | TDeltaFrame | TConsoleFrame | TInitialError;
export type TScrollMsg = {
    type: 'SCROLL';
    continue: string;
    limit?: number;
};
export {};
