import {Ice} from 'ice';
import {IceGrid} from '../IceGrid/Admin';
declare module './IceGrid.ns' {
namespace IceGrid {
/**
* This exception is raised if an error occurs during parsing.
*/
class ParseException extends Ice.UserException {
constructor(reason?: string);
reason: string;
}
/**
* icegridadmin provides a {@link FileParser}
* object to transform XML files into {@link ApplicationDescriptor}
* objects.
*/
abstract class FileParser extends Ice.Object {
/**
* Parse a file.
*
* @param xmlFile Full pathname to the file.
*
* @param adminProxy An Admin proxy, used only to retrieve default
* templates when needed. May be null.
*
* @return The application descriptor.
*
* @throws ParseException Raised if an error occurred during parsing.
*/
abstract parse(
xmlFile: string,
adminProxy: AdminPrx | null,
current: Ice.Current,
): Ice.OperationResult;
}
/**
* icegridadmin provides a {@link FileParser}
* object to transform XML files into {@link ApplicationDescriptor}
* objects.
*/
class FileParserPrx extends Ice.ObjectPrx {
/**
* Parse a file.
*
* @param xmlFile Full pathname to the file.
*
* @param adminProxy An Admin proxy, used only to retrieve default
* templates when needed. May be null.
*
* @return The application descriptor.
*
* @throws ParseException Raised if an error occurred during parsing.
*/
parse(
xmlFile: string,
adminProxy: AdminPrx | null,
ctx?: Ice.Context,
): Ice.AsyncResult;
}
}
}
export {IceGrid} from './IceGrid.ns';