import type { ExpandableStringKeyOf } from 'pinejs-client-core'; import type { dbModule, permissions } from '@balena/pinejs'; import type { Device, Service } from '../../balena-model.js'; export declare const getStateEventAdditionalFields: Array>>; declare const defaultConfigVariableFns: Array<(config: Dictionary) => void>; export declare const addDefaultConfigVariableFn: (fn: (typeof defaultConfigVariableFns)[number]) => void; export declare const setDefaultConfigVariables: (config: Dictionary) => void; export declare const getConfig: (device: { device_config_variable: EnvVarList; belongs_to__application: Array<{ application_config_variable: EnvVarList; }>; } | undefined, application?: { application_config_variable: EnvVarList; } | undefined) => Dictionary; export declare function serviceInstallFromImage(device: { service_install: Array<{ service: { __id: Service['Read']['id']; }; device_service_environment_variable: EnvVarList; }>; }, image: { is_a_build_of__service: Array>; } | undefined): { service: { __id: Service["Read"]["id"]; }; device_service_environment_variable: EnvVarList; } | undefined; export declare const formatImageLocation: (imageLocation: string) => string; export declare const filterDeviceConfig: (configVars: Dictionary) => void; export declare const setReadTransaction: (newReadTransaction: dbModule.Database["readTransaction"]) => void; export declare const readTransaction: dbModule.Database['readTransaction']; export declare const rejectUiConfig: (name: string) => boolean; export type EnvVarList = Array<{ name: string; value: string; }>; export declare const varListInsert: (varList: EnvVarList, obj: Dictionary, filterFn?: (name: string) => boolean) => void; export declare const ConfigurationVarsToLabels: { RESIN_SUPERVISOR_UPDATE_STRATEGY: string; RESIN_SUPERVISOR_HANDOVER_TIMEOUT: string; }; export declare const getStateDelayingEmpty: (getStateFn: (req: permissions.PermissionReq, uuid: string) => Promise) => (req: permissions.PermissionReq, uuid: string) => Promise; export {};