/**
 * @module node-filesystem-space-types
 *
 * mostly interfaces, some constants
 */
import { DEFAULT_LOCAL_SPACE_POLLING_INTERVAL_MS, IBGIB_SPACE_NAME_DEFAULT, ZERO_SPACE_ID } from '../../space-constants.mjs';
import { IBGIB_BASE_SUBPATH, IBGIB_SPACE_SUBPATH_DEFAULT, IBGIB_BASE_DIR, IBGIB_ENCODING, IBGIB_IBGIBS_SUBPATH, IBGIB_META_SUBPATH, IBGIB_BIN_SUBPATH, IBGIB_DNA_SUBPATH, IBGIB_LONG_SUBPATH, DEFAULT_LONG_PATH_LENGTH, DEFAULT_FILESYSTEM_SPACE_DESCRIPTION, } from '../filesystem-constants.mjs';
/**
 * Used in bootstrapping.
 *
 * If you change this, please bump the version
 *
 * (but of course won't be the end of the world when this doesn't happen).
 */
export const DEFAULT_NODE_FILESYSTEM_SPACE_DATA_V1 = {
    version: '2',
    uuid: ZERO_SPACE_ID,
    name: IBGIB_SPACE_NAME_DEFAULT,
    classname: 'NodeFilesystemSpace_V1',
    baseDir: IBGIB_BASE_DIR,
    encoding: IBGIB_ENCODING,
    baseSubPath: IBGIB_BASE_SUBPATH,
    spaceSubPath: IBGIB_SPACE_SUBPATH_DEFAULT,
    ibgibsSubPath: IBGIB_IBGIBS_SUBPATH,
    metaSubPath: IBGIB_META_SUBPATH,
    binSubPath: IBGIB_BIN_SUBPATH,
    dnaSubPath: IBGIB_DNA_SUBPATH,
    longSubPath: IBGIB_LONG_SUBPATH,
    mitigateLongPaths: true,
    longPathLength: DEFAULT_LONG_PATH_LENGTH,
    persistOptsAndResultIbGibs: false,
    validateIbGibAddrsMatchIbGibs: false,
    longPollingIntervalMs: DEFAULT_LOCAL_SPACE_POLLING_INTERVAL_MS,
    allowPrimitiveArgs: false,
    catchAllErrors: true,
    description: DEFAULT_FILESYSTEM_SPACE_DESCRIPTION,
    trace: false,
};
export const FileEncoding = {
    ascii: 'ascii',
    utf8: 'utf8',
    utf_8: 'utf-8',
    ['utf-8']: 'utf-8',
    utf16le: 'utf16le',
    ucs2: 'ucs2',
    ucs_2: 'ucs-2',
    ['ucs-2']: 'ucs-2',
    base64: 'base64',
    base64url: 'base64url',
    latin1: 'latin1',
    binary: 'binary',
    hex: 'hex',
};
/**
 * valid file encoding values per {@link FileEncoding}
 */
export const FILE_ENCODINGS = Object.values(FileEncoding);
export const B2TFS_DEFAULT_ENCODINGS_TO_TRY = [
    FileEncoding.utf8,
    FileEncoding.utf16le,
    FileEncoding.base64,
    FileEncoding.binary,
    undefined,
];
//# sourceMappingURL=node-filesystem-space-types.mjs.map