# createNamespace

FUNCTION in `@skmtc/lang-typescript 0.19.1`

Creates a namespace identifier - declares with `declare namespace` in
block form (`export declare namespace Name <body>`) and imports as a plain
named import (for `Name.Member` access). Used for the same-file type
re-export blocks the Stainless-style SDK layout emits.

## Signature

```ts
import { createNamespace } from '@skmtc/lang-typescript'

createNamespace(name: string, args?: CreateDeclarationArgs): TsIdentifier
```

## Parameters

- `name` (string, required)
- `args` (CreateDeclarationArgs)
  - `exported` (boolean): Whether the identifier is exported. Defaults to `true`.

## Examples

Example:

```ts
const models = createNamespace('Models');
// TsDefinition renders: export declare namespace Models <value>
```

## Returns

`TsIdentifier`
