ts-freebox
Version:
27 lines (24 loc) • 761 B
TypeScript
import { LanHost } from '../lan/host.js';
import '../index.js';
interface WifiCustomKeyHost {
hostname: string;
host: LanHost;
}
interface WifiCustomKeyParams {
description?: string;
key: string;
max_use_count: `${number}`;
duration: number;
access_type: keyof typeof AccessType;
}
interface WifiCustomKey {
id: number;
remain: number;
params: WifiCustomKeyParams;
users: WifiCustomKeyHost[];
}
declare enum AccessType {
full = "stations will get full access to local network + internet",
net_only = "stations connected using this custom key will be isolated and won\u2019t have access to local network devices"
}
export { AccessType, type WifiCustomKey, type WifiCustomKeyHost, type WifiCustomKeyParams };