@airplane/views
Version:
A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.
18 lines (17 loc) • 671 B
TypeScript
import React from "react";
export type RunnerScaleSignal = {
signalKey: string;
expirationDurationSeconds: number;
taskSlug: string;
};
export declare class RunnerScaleSignalContextType {
private lastSent;
constructor();
getMapKey(signal: RunnerScaleSignal): string;
createScaleSignal(signal: RunnerScaleSignal): Promise<void>;
}
export declare const RunnerScaleSignalContext: React.Context<RunnerScaleSignalContextType>;
export type RunnerScaleSignalProviderProps = {
children: React.ReactNode;
};
export declare const RunnerScaleSignalProvider: ({ children, }: RunnerScaleSignalProviderProps) => import("react/jsx-runtime").JSX.Element;