Files
Fluxup_PAP/node_modules/lan-network/dist/lan-network.d.ts
2026-03-10 16:18:05 +00:00

22 lines
535 B
TypeScript

interface NetworkAssignment {
iname: string;
address: string;
netmask: string;
mac: string;
internal: boolean;
cidr: string | null;
family: 'IPv4';
}
interface GatewayAssignment extends NetworkAssignment {
gateway: string | null;
}
interface NetworkOptions {
noProbe?: boolean;
noDhcp?: boolean;
}
declare function lanNetwork(opts?: NetworkOptions): Promise<GatewayAssignment>;
declare function lanNetworkSync(opts?: NetworkOptions): GatewayAssignment;
export { type NetworkOptions, lanNetwork, lanNetworkSync };